(20241214) GMail URL generation bug fixed.

This commit is contained in:
2024-12-14 12:08:19 +05:30
parent c673c3511f
commit dc181c4995
2 changed files with 6 additions and 3 deletions
+3 -2
View File
@@ -155,7 +155,8 @@ class AuthTokenController(BaseModel):
}
},
projection = {
"_id": True
"_id": True,
"key": True
},
upsert = True,
return_updated = True
@@ -182,7 +183,7 @@ class AuthTokenController(BaseModel):
)
# Done here:
return auth_token.key if mongo_json and db_json.get("status") == 1 else None
return mongo_json["key"] if mongo_json and db_json.get("status") == 1 else None
async def set_token(
self,