|
|
@ -252,7 +252,8 @@ export async function invokeWebhook( |
|
|
|
newData, |
|
|
|
newData, |
|
|
|
user, |
|
|
|
user, |
|
|
|
testFilters = null, |
|
|
|
testFilters = null, |
|
|
|
throwErrorOnFailure = false |
|
|
|
throwErrorOnFailure = false, |
|
|
|
|
|
|
|
testHook = false |
|
|
|
) { |
|
|
|
) { |
|
|
|
let hookLog: HookLogType; |
|
|
|
let hookLog: HookLogType; |
|
|
|
const startTime = process.hrtime(); |
|
|
|
const startTime = process.hrtime(); |
|
|
@ -413,7 +414,7 @@ export async function invokeWebhook( |
|
|
|
hookLog.execution_time = parseHrtimeToMilliSeconds( |
|
|
|
hookLog.execution_time = parseHrtimeToMilliSeconds( |
|
|
|
process.hrtime(startTime) |
|
|
|
process.hrtime(startTime) |
|
|
|
); |
|
|
|
); |
|
|
|
HookLog.insert({ ...hookLog, test_call: !!testFilters }); |
|
|
|
HookLog.insert({ ...hookLog, test_call: testHook }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|