Filter by user IDs when sending comment notifications (#14186)
This commit is contained in:
parent
c591ec811d
commit
708fc9e2a1
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ module Notifications
|
|||
|
||||
# Send PNs using Rpush - respecting users' notificaton delivery settings
|
||||
targets = User.joins(:notification_setting)
|
||||
.where(notification_setting: { mobile_comment_notifications: true }).ids
|
||||
.where(id: user_ids, notification_setting: { mobile_comment_notifications: true }).ids
|
||||
|
||||
PushNotifications::Send.call(
|
||||
user_ids: targets,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue