Skip to content

Commit 27be905

Browse files
committed
ack PR comments
1 parent bb589df commit 27be905

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

apps/sim/lib/workflows/schedules/deploy.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,13 @@ export async function createSchedulesForDeploy(
228228
return { success: true }
229229
}
230230

231+
let lastScheduleInfo: {
232+
scheduleId: string
233+
cronExpression?: string
234+
nextRunAt?: Date
235+
timezone?: string
236+
} | null = null
237+
231238
for (const block of scheduleBlocks) {
232239
const blockId = block.id as string
233240

@@ -282,16 +289,13 @@ export async function createSchedulesForDeploy(
282289
nextRunAt: nextRunAt?.toISOString(),
283290
})
284291

285-
return {
286-
success: true,
287-
scheduleId: values.id,
288-
cronExpression,
289-
nextRunAt,
290-
timezone,
291-
}
292+
lastScheduleInfo = { scheduleId: values.id, cronExpression, nextRunAt, timezone }
292293
}
293294

294-
return { success: true }
295+
return {
296+
success: true,
297+
...lastScheduleInfo,
298+
}
295299
}
296300

297301
/**

0 commit comments

Comments
 (0)