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 faed677..b765cb7 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 e13e7d3..063e81d 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 203a139..d09a393 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 72479cb..0fa3b4a 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] }; }, };