feat: update getClientAccessToken to use companyId from params

master
adriano 2025-06-30 14:21:51 -03:00
parent 9e1608a308
commit 671d5e3fb7
1 changed files with 2 additions and 1 deletions

View File

@ -594,7 +594,8 @@ const webhook_crm = async (req, res) => {
}
const getClientAccessToken = async (req, res) => {
const { companyId, clientId } = req.body;
const { companyId } = req.params
const { clientId } = req.body;
console.log('========> getClientAccessToken companyId: ', companyId, ' clientId: ', clientId);
mustContainProperties(req, ['companyId', 'clientId']);