feat: send completed mail to all signers

This commit is contained in:
prafull-opensignlabs
2024-10-10 12:50:26 +05:30
parent 9c1b4261dc
commit 2a3947ea1d
19 changed files with 25 additions and 16 deletions
@@ -9,6 +9,7 @@ export default async function callWebhook(request) {
const appId = process.env.APP_ID;
try {
const docQuery = new Parse.Query('contracts_Document');
docQuery.include('ExtUserPtr.TenantId');
const docRes = await docQuery.get(docId, { useMasterKey: true });
const isEnableOTP = docRes?.get('IsEnableOTP') || false;
let userId;