diff --git a/packages/backend/src/apps/scheduler/triggers/every-day/index.ts b/packages/backend/src/apps/scheduler/triggers/every-day/index.ts index faed677a..b765cb75 100644 --- a/packages/backend/src/apps/scheduler/triggers/every-day/index.ts +++ b/packages/backend/src/apps/scheduler/triggers/every-day/index.ts @@ -158,13 +158,13 @@ export default { const dateTime = DateTime.fromJSDate(startDateTime); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(dateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, async testRun($: IGlobalVariable) { const nextCronDateTime = getNextCronDateTime(this.getInterval($.db.step.parameters)); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(nextCronDateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, }; diff --git a/packages/backend/src/apps/scheduler/triggers/every-hour/index.ts b/packages/backend/src/apps/scheduler/triggers/every-hour/index.ts index e13e7d3d..063e81d1 100644 --- a/packages/backend/src/apps/scheduler/triggers/every-hour/index.ts +++ b/packages/backend/src/apps/scheduler/triggers/every-hour/index.ts @@ -52,13 +52,13 @@ export default { const dateTime = DateTime.fromJSDate(startDateTime); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(dateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, async testRun($: IGlobalVariable) { const nextCronDateTime = getNextCronDateTime(this.getInterval($.db.step.parameters)); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(nextCronDateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, }; diff --git a/packages/backend/src/apps/scheduler/triggers/every-month/index.ts b/packages/backend/src/apps/scheduler/triggers/every-month/index.ts index 203a1393..d09a3935 100644 --- a/packages/backend/src/apps/scheduler/triggers/every-month/index.ts +++ b/packages/backend/src/apps/scheduler/triggers/every-month/index.ts @@ -271,13 +271,13 @@ export default { const dateTime = DateTime.fromJSDate(startDateTime); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(dateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, async testRun($: IGlobalVariable) { const nextCronDateTime = getNextCronDateTime(this.getInterval($.db.step.parameters)); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(nextCronDateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, }; diff --git a/packages/backend/src/apps/scheduler/triggers/every-week/index.ts b/packages/backend/src/apps/scheduler/triggers/every-week/index.ts index 72479cb3..0fa3b4ab 100644 --- a/packages/backend/src/apps/scheduler/triggers/every-week/index.ts +++ b/packages/backend/src/apps/scheduler/triggers/every-week/index.ts @@ -175,13 +175,13 @@ export default { const dateTime = DateTime.fromJSDate(startDateTime); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(dateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, async testRun($: IGlobalVariable) { const nextCronDateTime = getNextCronDateTime(this.getInterval($.db.step.parameters)); const dateTimeObjectRepresentation = getDateTimeObjectRepresentation(nextCronDateTime) as IJSONValue; - return [dateTimeObjectRepresentation] as IJSONValue; + return { data: [dateTimeObjectRepresentation] }; }, };