Commit 11d52a15533cf0cbaa4a3a61186f8942d90ce374

Authored by Dmitriy Zaporozhets
1 parent 2b2d43ed

Fix NotificationService reassign_email method

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/services/notification_service.rb
... ... @@ -127,7 +127,7 @@ class NotificationService
127 127 end
128 128 end
129 129  
130   - def reassign_email(target, current_user, entity_sym)
  130 + def reassign_email(target, current_user, method)
131 131 recipients = User.where(id: [target.assignee_id, target.assignee_id_was])
132 132  
133 133 # reject users with disabled notifications
... ... @@ -136,7 +136,7 @@ class NotificationService
136 136 # Reject me from recipients if I reassign an item
137 137 recipients.delete(current_user)
138 138  
139   - recipients.each do |recipient_id|
  139 + recipients.each do |recipient|
140 140 Notify.delay.send(method, recipient.id, target.id, target.assignee_id_was)
141 141 end
142 142 end
... ...