Update routes/sendnotifications.py
Browse files
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 |
-
|
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":
|