fix: document completion mail are not receiving

This commit is contained in:
prafull-opensignlabs
2024-02-15 10:41:35 +05:30
parent 9d15b035c5
commit 7a9bebe035
+6 -2
View File
@@ -269,7 +269,9 @@ async function PDF(i, n) {
receiver: g,
};
return (
o.data.IsSendMail && sendMail(w),
o.data.IsSendMail && !1 === o.data.IsSendMail
? console.log("don't send mail")
: sendMail(w),
sendDoctoWebhook(o, U.imageUrl, 'signed', s?.data.results?.[0]),
n &&
n.isCompleted &&
@@ -279,7 +281,9 @@ async function PDF(i, n) {
pdfName: o.data.Name,
receiver: o.data.ExtUserPtr.Email,
}),
o.data.IsSendMail && sendCompletedMail(I),
o.data.IsSendMail && !1 === o.data.IsSendMail
? console.log("don't send mail")
: sendCompletedMail(I),
sendDoctoWebhook(o, U.imageUrl, 'completed')),
fs.unlinkSync(x),
console.log('New Signed PDF created called: ' + x),