cancel messages against the correct shard

refs CNVS-7177

Change-Id: I341eb1bed07a6d7d1e42ba9114510a1827a5b445
This commit is contained in:
Cody Cutrer 2013-07-29 13:36:17 -06:00
parent 01eb2ebe52
commit a2ed19fc2f
1 changed files with 2 additions and 1 deletions

View File

@ -279,7 +279,8 @@ class NotificationMessageCreator
def cancel_pending_duplicate_messages
# doesn't include dashboard messages. should it?
@notification.messages.for(@asset).
Message.where(:notification_id => @notification).
for(@asset).
by_name(@notification.name).
for_user(@to_users + @to_channels).
cancellable.