mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-13 08:34:49 +08:00
Merge pull request #6800 from artoscinote/ma_SCI_9870
Send notifications in the backgrond by default [SCI-9870]
This commit is contained in:
commit
d964dfd54e
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue