diff --git a/backend/controllers/crmController.js b/backend/controllers/crmController.js index 5328e36..cefb165 100644 --- a/backend/controllers/crmController.js +++ b/backend/controllers/crmController.js @@ -600,7 +600,7 @@ const getClientAccessToken = async (req, res) => { mustContainProperties(req, ['clientId']); - const accessToken = await getAccessToken(companyId, clientId); + const accessToken = await getAccessToken(clientId, companyId); if (!accessToken) { console.error(`Access token not found for companyId: ${companyId} and clientId: ${clientId}`);