mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
fix: document completion mail are not receiving
This commit is contained in:
+6
-2
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user