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 3 years ago committed by GitHub
parent
commit
68cacb23ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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