Skip to content

Commit a5abc82

Browse files
committed
fix(schedules): added oauth context to schedule execution
1 parent 492b591 commit a5abc82

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sim/app/api/schedules/execute/route.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ export async function GET(req: NextRequest) {
233233
// Add workflowId to the input for OAuth credential resolution
234234
const input = {
235235
workflowId: schedule.workflowId,
236+
// Add _context with workflowId to ensure OAuth token resolution works properly
237+
_context: {
238+
workflowId: schedule.workflowId
239+
}
236240
}
237241

238242
// Process the block states to ensure response formats are properly parsed

0 commit comments

Comments
 (0)