Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -409,6 +409,7 @@ async def update_user_doc(background_tasks: BackgroundTasks, currentUserUid:str
|
|
| 409 |
user_doc = users_ref.document(currentUserUid)
|
| 410 |
doc_snapshot = user_doc.get()
|
| 411 |
if doc_snapshot.exists:
|
|
|
|
| 412 |
return {"dbUserExists": True, "user": doc_snapshot.to_dict()}
|
| 413 |
else:
|
| 414 |
return {"dbUserExists": False}
|
|
|
|
| 409 |
user_doc = users_ref.document(currentUserUid)
|
| 410 |
doc_snapshot = user_doc.get()
|
| 411 |
if doc_snapshot.exists:
|
| 412 |
+
print(doc_snapshot.to_dict())
|
| 413 |
return {"dbUserExists": True, "user": doc_snapshot.to_dict()}
|
| 414 |
else:
|
| 415 |
return {"dbUserExists": False}
|