Skip to content

Commit

Permalink
Fix snap id parameter in save_notification method
Browse files Browse the repository at this point in the history
  • Loading branch information
noxethiems committed Dec 7, 2023
1 parent 16e42e3 commit 5e7067f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions identity_socializer/services/push_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5e7067f

Please sign in to comment.