Skip to content
Snippets Groups Projects
Commit 11d52a15 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix NotificationService reassign_email method

parent 2b2d43ed
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -127,7 +127,7 @@ class NotificationService
end
end
 
def reassign_email(target, current_user, entity_sym)
def reassign_email(target, current_user, method)
recipients = User.where(id: [target.assignee_id, target.assignee_id_was])
 
# reject users with disabled notifications
Loading
Loading
@@ -136,7 +136,7 @@ class NotificationService
# Reject me from recipients if I reassign an item
recipients.delete(current_user)
 
recipients.each do |recipient_id|
recipients.each do |recipient|
Notify.delay.send(method, recipient.id, target.id, target.assignee_id_was)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment