diff --git a/controllers_v2/core/auth_token.py b/controllers_v2/core/auth_token.py index 1f07f9c..eea1659 100644 --- a/controllers_v2/core/auth_token.py +++ b/controllers_v2/core/auth_token.py @@ -232,6 +232,7 @@ class CoreAuthTokenController(CoreBaseModel): proc_name = "entity_integration_save", proc_args = ( auth_token.user.entityId, # ..................................... 'p_entity_id' + auth_token.user.billingAccountId, # ............................. 'p_billing_account_id' auth_token.client, # ............................................ 'p_provider' auth_token.status, # ............................................ 'p_current_status' "Auth Requested", # ............................................. 'p_last_action' @@ -325,15 +326,16 @@ class CoreAuthTokenController(CoreBaseModel): sql_conn = sql_conn, proc_name = "entity_integration_save", proc_args = ( - mongo_json["user"]["entityId"], # ............................... 'p_entity_id' - mongo_json["client"], # ......................................... 'p_provider' - auth_token.status, # ............................................ 'p_current_status' - "Auth Granted", # ............................................... 'p_last_action' - display_name, # ................................................. 'p_display_name' - display_picture, # .............................................. 'p_display_picture' - token_key, # .................................................... 'p_token_id' - json.to_string(python_data = token_notes, no_space = True), # ... 'p_notes' - auth_token.user.userId # ........................................ 'p_created_by' + mongo_json["user"]["entityId"], # ....................................... 'p_entity_id' + mongo_json["user"]["billingAccountId"], # ............................... 'p_billing_account_id' + mongo_json["client"], # ................................................. 'p_provider' + auth_token.status, # .................................................... 'p_current_status' + "Auth Granted", # ....................................................... 'p_last_action' + display_name, # ......................................................... 'p_display_name' + display_picture, # ...................................................... 'p_display_picture' + token_key, # ............................................................ 'p_token_id' + json.to_string(python_data = token_notes, no_space = True), # ........... 'p_notes' + auth_token.user.userId # ................................................ 'p_created_by' ), session_token = session_token )