From 5e7067f3fbef953f29bdcd3d9f669c752b4d0f35 Mon Sep 17 00:00:00 2001 From: Nox Date: Thu, 7 Dec 2023 19:24:31 -0300 Subject: [PATCH] Fix snap id parameter in save_notification method --- identity_socializer/services/push_notifications.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/identity_socializer/services/push_notifications.py b/identity_socializer/services/push_notifications.py index fd0aef2..3921dae 100644 --- a/identity_socializer/services/push_notifications.py +++ b/identity_socializer/services/push_notifications.py @@ -106,7 +106,7 @@ async def new_like( body = f"@{username} liked your snap!" notif_type = "NewLikeNotification" - self.save_notification(to_id, title, body, notif_type, snap.id) + self.save_notification(to_id, title, body, notif_type, snap["id"]) # Send push notification to user push_tokens = await push_token_dao.get_push_tokens_by_user(to_id) @@ -171,7 +171,7 @@ async def new_mention( body = f"@{username} mentioned you!" notif_type = "NewMentionNotification" - self.save_notification(to_id, title, body, notif_type, snap.id) + self.save_notification(to_id, title, body, notif_type, snap["id"]) # Send push notification to user push_tokens = await push_token_dao.get_push_tokens_by_user(to_id)