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 = {
|
def notification_data = {
|
||||||
data: {
|
data: {
|
||||||
badge: current_user.unread_inbox_count,
|
badge: unread_inbox_count,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue