deal send files confirm method

This commit is contained in:
merelendor 2023-10-30 15:01:36 +03:00
parent 3737797216
commit 6c4595153c
2 changed files with 8 additions and 1 deletions

View File

@ -201,6 +201,14 @@ 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();
});
})

View File

@ -40,7 +40,6 @@ class IndexPage extends React.Component
static getDerivedStateFromProps(nextProps, prevState)
{
console.log("getDerivedStateFromProps", "edo", nextProps);
return {
observer: nextProps.observer,
user: nextProps.user,