DEV: Don't publish to the /reviewable_counts channel (#17779)

Follow-up to ce9eec8606.

I did a last-minute refactoring before merging the commit above where I extracted the Message Bus publish call into a new method, but forgot to delete the publish call after adding a call to the new method.
This commit is contained in:
Osama Sayegh
2022-08-03 18:23:43 +03:00
committed by GitHub
parent 3d7829c01f
commit 5c2e909543
2 changed files with 14 additions and 5 deletions

View File

@@ -643,11 +643,6 @@ class User < ActiveRecord::Base
if max_reviewable_id
update!(last_seen_reviewable_id: max_reviewable_id)
publish_reviewable_counts(unseen_reviewable_count: self.unseen_reviewable_count)
MessageBus.publish(
"/reviewable_counts",
{ unseen_reviewable_count: self.unseen_reviewable_count },
user_ids: [self.id]
)
end
end