Browse Source

Merge pull request #2220 from nocodb/fix/2209-webhook-condition

fix: skip hook log if condition is not matching
pull/2221/head
Pranav C 2 years ago committed by GitHub
parent
commit
68cacb23ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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;
} finally {
hookLog.execution_time = parseHrtimeToMilliSeconds(
process.hrtime(startTime)
);
if (hookLog) HookLog.insert({ ...hookLog, test_call: !!testFilters });
if (hookLog) {
hookLog.execution_time = parseHrtimeToMilliSeconds(
process.hrtime(startTime)
);
HookLog.insert({ ...hookLog, test_call: !!testFilters });
}
}
}

Loading…
Cancel
Save