Browse Source

fix: skip hook log if condition is not matching

re #2209

Signed-off-by: Pranav C <pranavxc@gmail.com>
feat/0523-export-schema
Pranav C 3 years ago committed by Raju Udava
parent
commit
acbfb8e2f3
  1. 4
      packages/nocodb/src/lib/noco/meta/helpers/webhookHelpers.ts

4
packages/nocodb/src/lib/noco/meta/helpers/webhookHelpers.ts

@ -291,10 +291,12 @@ export async function invokeWebhook(
};
if (throwErrorOnFailure) throw e;
} finally {
if (hookLog) {
hookLog.execution_time = parseHrtimeToMilliSeconds(
process.hrtime(startTime)
);
if (hookLog) HookLog.insert({ ...hookLog, test_call: !!testFilters });
HookLog.insert({ ...hookLog, test_call: !!testFilters });
}
}
}

Loading…
Cancel
Save