Commit 525fa6c11ba739968c1af5b3dbd69a23c3834811
1 parent
7edf65d1
Exists in
spb-stable
and in
2 other branches
Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/services/notification_service.rb
@@ -254,7 +254,7 @@ class NotificationService | @@ -254,7 +254,7 @@ class NotificationService | ||
254 | # Remove users with disabled notifications from array | 254 | # Remove users with disabled notifications from array |
255 | # Also remove duplications and nil recipients | 255 | # Also remove duplications and nil recipients |
256 | def reject_muted_users(users, project = nil) | 256 | def reject_muted_users(users, project = nil) |
257 | - users = users.compact.uniq | 257 | + users = users.to_a.compact.uniq |
258 | 258 | ||
259 | users.reject do |user| | 259 | users.reject do |user| |
260 | next user.notification.disabled? unless project | 260 | next user.notification.disabled? unless project |