Browse Source

fix: skip hook log if condition is not matching

re #2209

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2220/head
Pranav C 3 years ago
parent
commit
6ebd94ad34
  1. 10
      packages/nocodb/src/lib/noco/meta/helpers/webhookHelpers.ts

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

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

Loading…
Cancel
Save