fix(schedules): added oauth context to schedule execution

This commit is contained in:
Emir Karabeg
2025-04-25 20:58:00 -07:00
parent 492b5914ed
commit a5abc82573

View File

@@ -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