File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
apps/sim/lib/workflows/schedules Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff 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/**
You can’t perform that action at this time.
0 commit comments