Merge pull request #6800 from artoscinote/ma_SCI_9870

Send notifications in the backgrond by default [SCI-9870]
This commit is contained in:
Martin Artnik 2023-12-12 10:54:30 +01:00 committed by GitHub
commit d964dfd54e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ class BaseNotification < Noticed::Base
deliver_by :database, if: :database_notification?
deliver_by :email, mailer: 'AppMailer', method: :general_notification, if: :email_notification?
def self.send_notifications(params, later: false)
def self.send_notifications(params, later: true)
recipients_class =
"Recipients::#{NotificationExtends::NOTIFICATIONS_TYPES[subtype || params[:type]][:recipients_module]}".constantize
recipients_class.new(params).recipients.each do |recipient|