Fix incorrect access of `unread_inbox_count` in `notification_data`

This commit is contained in:
Karina Kwiatek 2023-03-04 17:49:24 +01:00
parent 68e0f02a2d
commit 14379acbd3
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ module User::PushNotificationMethods
def notification_data = { def notification_data = {
data: { data: {
badge: current_user.unread_inbox_count, badge: unread_inbox_count,
}, },
} }
end end

View File

@ -78,7 +78,7 @@ describe QuestionWorker do
user: receiver, user: receiver,
subscription: { subscription: {
endpoint: "This will not be used", endpoint: "This will not be used",
keys: {} keys: {},
} }
) )
receiver.follow(user) receiver.follow(user)