Skip to content

Commit

Permalink
Sonatus testing (#110)
Browse files Browse the repository at this point in the history
* Fix Creds for connection call

* Sonatus testing env

* Sonatus testing env
  • Loading branch information
ruuushhh authored Apr 19, 2024
1 parent 6d1356e commit c39f0d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/business_central/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class BusinessCentralConnector:
def __init__(self, credentials_object: BusinessCentralCredentials, workspace_id: int):
client_id = settings.BUSINESS_CENTRAL_CLIENT_ID
client_secret = settings.BUSINESS_CENTRAL_CLIENT_SECRET
environment = settings.BUSINESS_CENTRAL_ENVIRONMENT
environment = settings.BUSINESS_CENTRAL_ENVIRONMENT if credentials_object.workspace.id != 25 else 'SANDBOX_APRIL2024'
refresh_token = credentials_object.refresh_token

business_central_company_id = credentials_object.workspace.business_central_company_id
Expand Down

0 comments on commit c39f0d3

Please sign in to comment.