Fix tests
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
7edf65d1ee
commit
525fa6c11b
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ class NotificationService
|
||||||
# Remove users with disabled notifications from array
|
# Remove users with disabled notifications from array
|
||||||
# Also remove duplications and nil recipients
|
# Also remove duplications and nil recipients
|
||||||
def reject_muted_users(users, project = nil)
|
def reject_muted_users(users, project = nil)
|
||||||
users = users.compact.uniq
|
users = users.to_a.compact.uniq
|
||||||
|
|
||||||
users.reject do |user|
|
users.reject do |user|
|
||||||
next user.notification.disabled? unless project
|
next user.notification.disabled? unless project
|
||||||
|
|
Loading…
Reference in a new issue