From a5abc825737d4df488e4fab8ecf578da45e961d8 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Fri, 25 Apr 2025 20:58:00 -0700 Subject: [PATCH] fix(schedules): added oauth context to schedule execution --- sim/app/api/schedules/execute/route.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sim/app/api/schedules/execute/route.ts b/sim/app/api/schedules/execute/route.ts index e998436855..18868db6b4 100644 --- a/sim/app/api/schedules/execute/route.ts +++ b/sim/app/api/schedules/execute/route.ts @@ -233,6 +233,10 @@ export async function GET(req: NextRequest) { // Add workflowId to the input for OAuth credential resolution const input = { workflowId: schedule.workflowId, + // Add _context with workflowId to ensure OAuth token resolution works properly + _context: { + workflowId: schedule.workflowId + } } // Process the block states to ensure response formats are properly parsed