(20241209) Small failure view bug fix to show the 'logId' now.

This commit is contained in:
2024-12-09 12:42:28 +05:30
parent e2c9200941
commit a443a78e19
7 changed files with 239 additions and 234 deletions
+6 -6
View File
@@ -7,7 +7,7 @@
DATE:
ORIGINAL: Monday, 2nd Dec., 2024
UPGRADE: Monday, 9th Dec., 2024
UPGRADED: Monday, 9th Dec., 2024
OBJECTIVE:
@@ -134,9 +134,9 @@ class MailOAuthModel(BaseModel):
}),
update = {
"$set": {
"lastRequestTs": request_ts,
"lastRequestTs": auth_token.lastRequestTs,
"status": auth_token.status,
"syncFreq": max(auth_token.syncFreq, 60)
"syncFreq": auth_token.syncFreq
},
"$setOnInsert": {
"version": auth_token.version,
@@ -149,7 +149,7 @@ class MailOAuthModel(BaseModel):
"token": auth_token.token,
"firstRefreshTs": auth_token.firstRefreshTs,
"lastRefreshTs": auth_token.lastRefreshTs,
"firstRequestTs": auth_token.firstRequestTs,
"firstRequestTs": auth_token.firstRequestTs or request_ts,
}
},
projection = {
@@ -168,7 +168,7 @@ class MailOAuthModel(BaseModel):
proc_args = (
auth_token.user.entityId, # ......................................... 'p_entity_id'
auth_token.client, # ................................................ 'p_provider'
"Pending", # ........................................................ 'p_current_status'
auth_token.status, # ................................................ 'p_current_status'
"Auth Requested", # ................................................. 'p_last_action'
None, # ............................................................. 'p_display_name'
None, # ............................................................. 'p_display_picture'
@@ -254,7 +254,7 @@ class MailOAuthModel(BaseModel):
proc_args = (
mongo_json["user"]["entityId"], # ............................... 'p_entity_id'
mongo_json["client"], # ......................................... 'p_provider'
"Active", # ..................................................... 'p_current_status'
auth_token.status, # ............................................ 'p_current_status'
"Auth Granted", # ............................................... 'p_last_action'
auth_token.token.get("displayName"), # .......................... 'p_display_name'
auth_token.token.get("displayPictureUrl"), # .................... 'p_display_picture'