diff --git a/app/routes/push.py b/app/routes/push.py index f7a4ed3..0d2f878 100644 --- a/app/routes/push.py +++ b/app/routes/push.py @@ -32,7 +32,7 @@ async def subscribe(subscription: PushSubscription, current_user: User = Depends ) # Check if already has a subscription - if current_user.get("push_subscriptions"): + if current_user.push_subscriptions: # Add another subscription users_collection.update_one( {"username": current_user.username},