diff --git a/models/behaviour/mail/oauth.py b/models/behaviour/mail/oauth.py index a4c0dfa..bbcd13b 100644 --- a/models/behaviour/mail/oauth.py +++ b/models/behaviour/mail/oauth.py @@ -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 )