Fix incorrect access of `unread_inbox_count` in `notification_data`
This commit is contained in:
parent
68e0f02a2d
commit
14379acbd3
|
@ -19,7 +19,7 @@ module User::PushNotificationMethods
|
|||
|
||||
def notification_data = {
|
||||
data: {
|
||||
badge: current_user.unread_inbox_count,
|
||||
badge: unread_inbox_count,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
|
|
@ -78,7 +78,7 @@ describe QuestionWorker do
|
|||
user: receiver,
|
||||
subscription: {
|
||||
endpoint: "This will not be used",
|
||||
keys: {}
|
||||
keys: {},
|
||||
}
|
||||
)
|
||||
receiver.follow(user)
|
||||
|
|
Loading…
Reference in New Issue