chore: revert scheduling user id logic

This commit is contained in:
Rohit Rajan
2025-12-08 18:13:01 +05:30
parent e23f24207a
commit a03609c873
3 changed files with 5 additions and 4 deletions

View File

@@ -300,7 +300,7 @@ router.put("/sdk/robots/:id", requireAPIKey, async (req: AuthenticatedRequest, r
}
try {
await scheduleWorkflow(robotId, cronExpression, timezone);
await scheduleWorkflow(robotId, req.user.id, cronExpression, timezone);
} catch (scheduleError: any) {
logger.error(`[SDK] Failed to schedule workflow for robot ${robotId}: ${scheduleError.message}`);
return res.status(500).json({