mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 09:49:17 +01:00
Fix incorrect access of unread_inbox_count
in notification_data
This commit is contained in:
parent
68e0f02a2d
commit
14379acbd3
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue