diff --git a/app/models/user/push_notification_methods.rb b/app/models/user/push_notification_methods.rb index fd8eae03..b7b8f5d9 100644 --- a/app/models/user/push_notification_methods.rb +++ b/app/models/user/push_notification_methods.rb @@ -19,7 +19,7 @@ module User::PushNotificationMethods def notification_data = { data: { - badge: current_user.unread_inbox_count, + badge: unread_inbox_count, }, } end diff --git a/spec/workers/question_worker_spec.rb b/spec/workers/question_worker_spec.rb index 8070392b..0795e55b 100644 --- a/spec/workers/question_worker_spec.rb +++ b/spec/workers/question_worker_spec.rb @@ -78,7 +78,7 @@ describe QuestionWorker do user: receiver, subscription: { endpoint: "This will not be used", - keys: {} + keys: {}, } ) receiver.follow(user)