Merge branch 'master' of https://github.com/merelendor/evoleasing-account
This commit is contained in:
commit
89e620cdf0
@ -201,14 +201,6 @@ export default async function handler(req, res)
|
||||
uploadFile({ deal_id, local_filename: zip_filename, filename: zip_filename, name: document.name, id: document.id, crm_jwt })
|
||||
.then(() =>
|
||||
{
|
||||
axios.post(`${ process.env.CRM_API_HOST }/lk/ConsiderationOpportunity/documentdone?opp_number=${ deal_id }`, {}, {
|
||||
headers: {
|
||||
"Authorization": `Bearer ${ crm_jwt }`,
|
||||
},
|
||||
withCredentials: true, }
|
||||
)
|
||||
.then(() => {})
|
||||
.catch(() => {});
|
||||
callback();
|
||||
});
|
||||
})
|
||||
@ -220,6 +212,19 @@ export default async function handler(req, res)
|
||||
await RedisClient.set(key, JSON.stringify(deals));
|
||||
|
||||
res.status(200).json({});
|
||||
|
||||
axios.post(`${ process.env.CRM_API_HOST }/lk/ConsiderationOpportunity/documentdone?opp_number=${ deal_id }`, {}, {
|
||||
headers: {
|
||||
"Authorization": `Bearer ${ crm_jwt }`,
|
||||
},
|
||||
withCredentials: true, }
|
||||
)
|
||||
.then(() => {})
|
||||
.catch((error) =>
|
||||
{
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
resolve();
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user