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 = {
data: {
badge: current_user.unread_inbox_count,
badge: unread_inbox_count,
},
}
end

View File

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