(20241129) Notes will be sent as JSON now.

This commit is contained in:
2024-11-29 13:42:02 +05:30
parent d5267e025d
commit a9ebc2d6bf
+18 -18
View File
@@ -162,15 +162,15 @@ class MailOAuthModel(BaseModel):
db_conn = db_conn,
proc_name = "entity_integration_save",
proc_args = (
user_info["entityId"], # .... 'p_entity_id'
service_client, # ........... 'p_provider'
"Auth Requested", # ......... 'p_current_status'
"Auth URL Generated", # ..... 'p_last_action'
None, # ..................... 'p_display_name'
None, # ..................... 'p_display_picture'
str(mongo_json["_id"]), # ... 'p_token_id'
None, # ..................... 'p_notes'
user_info["userId"] # ....... 'p_created_by'
user_info["entityId"], # ............. 'p_entity_id'
service_client, # .................... 'p_provider'
"Auth Requested", # .................. 'p_current_status'
"Auth URL Generated", # .............. 'p_last_action'
None, # .............................. 'p_display_name'
None, # .............................. 'p_display_picture'
str(mongo_json["_id"]), # ............ 'p_token_id'
json.to_string({"email": None}), # ... 'p_notes'
user_info["userId"] # ................ 'p_created_by'
),
session_token = session_token
)
@@ -226,15 +226,15 @@ class MailOAuthModel(BaseModel):
db_conn = db_conn,
proc_name = "entity_integration_save",
proc_args = (
mongo_json["user"]["entityId"], # ... 'p_entity_id'
mongo_json["client"], # ............. 'p_provider'
"Auth Granted", # ................... 'p_current_status'
"Set Token", # ...................... 'p_last_action'
None, # ............................. 'p_display_name'
None, # ............................. 'p_display_picture'
user_identifier, # .................. 'p_token_id'
token["email"], # ................... 'p_notes'
mongo_json["user"]["userId"] # ...... 'p_created_by'
mongo_json["user"]["entityId"], # .............. 'p_entity_id'
mongo_json["client"], # ........................ 'p_provider'
"Auth Granted", # .............................. 'p_current_status'
"Set Token", # ................................. 'p_last_action'
None, # ........................................ 'p_display_name'
None, # ........................................ 'p_display_picture'
user_identifier, # ............................. 'p_token_id'
json.to_string({"email": token["email"]}), # ... 'p_notes'
mongo_json["user"]["userId"] # ................. 'p_created_by'
),
session_token = session_token
)