fix: document viewed event not trigger

This commit is contained in:
prafull-opensignlabs
2024-09-18 19:56:47 +05:30
parent 7cf638b2be
commit 07d5f393c0
2 changed files with 2 additions and 2 deletions
@@ -12,7 +12,7 @@ export default async function callWebhook(request) {
const docRes = await docQuery.get(docId, { useMasterKey: true });
const isEnableOTP = docRes?.get('IsEnableOTP') || false;
let userId;
if (!isEnableOTP) {
if (isEnableOTP) {
const userRes = await axios.get(serverUrl + '/users/me', {
headers: {
'X-Parse-Application-Id': appId,