habulaj commited on
Commit
129de0c
·
verified ·
1 Parent(s): 31ac193

Update routes/sendnotifications.py

Browse files
Files changed (1) hide show
  1. routes/sendnotifications.py +1 -1
routes/sendnotifications.py CHANGED
@@ -140,7 +140,7 @@ async def send_notification(
140
  sender_id = await verify_user_token(user_token)
141
 
142
  if data.keyword not in ("follow", "like", "subscriber", "newmessage", "changeprice"):
143
- raise HTTPException(status_code=400, detail="Unsupported keyword")
144
 
145
  # Determine target_user_id
146
  if data.keyword == "like":
 
140
  sender_id = await verify_user_token(user_token)
141
 
142
  if data.keyword not in ("follow", "like", "subscriber", "newmessage", "changeprice"):
143
+ raise HTTPException(status_code=400, detail="Unsupported keyword")
144
 
145
  # Determine target_user_id
146
  if data.keyword == "like":