@@ -148,7 +148,6 @@ def new_note(note)
148
148
149
149
# build notify method like 'note_commit_email'
150
150
notify_method = "note_#{ note . noteable_type . underscore } _email" . to_sym
151
-
152
151
recipients . each do |recipient |
153
152
mailer . send ( notify_method , recipient . id , note . id ) . deliver_later
154
153
end
@@ -371,7 +370,7 @@ def close_resource_email(target, project, current_user, method)
371
370
recipients = build_recipients ( target , project , current_user )
372
371
373
372
recipients . each do |recipient |
374
- mailer . send ( method , recipient . id , target . id , current_user . id ) . deliver
373
+ mailer . send ( method , recipient . id , target . id , current_user . id ) . deliver_later
375
374
end
376
375
end
377
376
@@ -396,7 +395,7 @@ def reopen_resource_email(target, project, current_user, method, status)
396
395
recipients = build_recipients ( target , project , current_user )
397
396
398
397
recipients . each do |recipient |
399
- mailer . send ( method , recipient . id , target . id , status , current_user . id ) . deliver
398
+ mailer . send ( method , recipient . id , target . id , status , current_user . id ) . deliver_later
400
399
end
401
400
end
402
401
0 commit comments