Spaces:
Sleeping
Sleeping
updated util.py
Browse files
utils.py
CHANGED
|
@@ -262,7 +262,7 @@ def user_details_func(db_uri: str, document: Dict) -> Optional[Dict]:
|
|
| 262 |
return None
|
| 263 |
|
| 264 |
# Prepare base user document
|
| 265 |
-
user_doc['
|
| 266 |
user_doc.pop('_id')
|
| 267 |
user_doc.pop('password', None) # Use default None in case password doesn't exist
|
| 268 |
|
|
|
|
| 262 |
return None
|
| 263 |
|
| 264 |
# Prepare base user document
|
| 265 |
+
user_doc['userId'] = str(user_doc['_id'])
|
| 266 |
user_doc.pop('_id')
|
| 267 |
user_doc.pop('password', None) # Use default None in case password doesn't exist
|
| 268 |
|