From 26704767ba900ea6bcd86df0a9d12786031b7178 Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 30 Jun 2025 14:34:48 -0300 Subject: [PATCH] fix: swap parameters in getAccessToken call to match expected order --- backend/controllers/crmController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}`);