feat: update getClientAccessToken to use companyId from params
parent
9e1608a308
commit
671d5e3fb7
|
@ -594,7 +594,8 @@ const webhook_crm = async (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getClientAccessToken = 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);
|
console.log('========> getClientAccessToken companyId: ', companyId, ' clientId: ', clientId);
|
||||||
|
|
||||||
mustContainProperties(req, ['companyId', 'clientId']);
|
mustContainProperties(req, ['companyId', 'clientId']);
|
||||||
|
|
Loading…
Reference in New Issue