mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
rename status from nonEmptyCb to nonEmptyCallback
This commit is contained in:
parent
3eb6f40c3a
commit
32e129b630
@ -123,7 +123,7 @@ const runScript = async (functionCode, isCalled, options = { maxScriptRunTime, m
|
||||
success: false,
|
||||
message: err.message,
|
||||
errors: err.errors,
|
||||
status: 'nonEmptyCb',
|
||||
status: 'nonEmptyCallback',
|
||||
executionTime: performance.now() - start,
|
||||
consoleLogs,
|
||||
});
|
||||
|
@ -6381,7 +6381,7 @@ const checkScriptCondition = (condition, body) => {
|
||||
validity.reason = `Script did not throw error`;
|
||||
}
|
||||
} else if (condition.filter === 'emptyCallback') {
|
||||
if (body.statusText === 'nonEmptyCb' && body.error) {
|
||||
if (body.statusText === 'nonEmptyCallback' && body.error) {
|
||||
validity.valid = false;
|
||||
validity.reason = `Script callback invoked with arguments ${JSON.stringify(
|
||||
body.error
|
||||
@ -6391,7 +6391,7 @@ const checkScriptCondition = (condition, body) => {
|
||||
validity.reason = `Script callback has no arguments`;
|
||||
}
|
||||
} else if (condition.filter === 'nonEmptyCallback') {
|
||||
if (body.statusText === 'nonEmptyCb' && body.error) {
|
||||
if (body.statusText === 'nonEmptyCallback' && body.error) {
|
||||
validity.valid = true;
|
||||
validity.reason = `Script callback invoked with arguments ${JSON.stringify(
|
||||
body.error
|
||||
|
@ -128,7 +128,7 @@ const runScript = async (
|
||||
success: false,
|
||||
message: err.message,
|
||||
errors: err.errors,
|
||||
status: 'nonEmptyCb',
|
||||
status: 'nonEmptyCallback',
|
||||
executionTime: performance.now() - start,
|
||||
consoleLogs,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user