Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,7 @@ async def get_user_by_username(username: str) -> Optional[dict]:
|
|
| 170 |
FCM_SERVER_KEY = os.getenv("FCM_SERVER_KEY")
|
| 171 |
|
| 172 |
def send_push(token: str, title: str, body: str, platform: str = "web"):
|
| 173 |
-
if platform
|
| 174 |
message = firebase_admin.messaging.Message(
|
| 175 |
notification=firebase_admin.messaging.Notification(
|
| 176 |
title=title,
|
|
|
|
| 170 |
FCM_SERVER_KEY = os.getenv("FCM_SERVER_KEY")
|
| 171 |
|
| 172 |
def send_push(token: str, title: str, body: str, platform: str = "web"):
|
| 173 |
+
if platform=="app":
|
| 174 |
message = firebase_admin.messaging.Message(
|
| 175 |
notification=firebase_admin.messaging.Notification(
|
| 176 |
title=title,
|