mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-21 15:12:34 +02:00
fix: Set send_email to false to stop receiving mails through API
This commit is contained in:
@@ -278,7 +278,7 @@ const sendMailsaveCertifcate = async (doc, P12Buffer, url, isCustomMail, mailPro
|
||||
},
|
||||
});
|
||||
// used in API only
|
||||
if (doc.IsSendMail && doc.IsSendMail === false) {
|
||||
if (doc.IsSendMail === false) {
|
||||
console.log("don't send mail");
|
||||
} else {
|
||||
const mailObj = {
|
||||
|
||||
Reference in New Issue
Block a user