feat: !cron in res.send

This commit is contained in:
karishmas6
2024-09-13 07:56:11 +05:30
parent 0368712678
commit 77bef40d58

View File

@@ -268,10 +268,10 @@ router.put('/schedule/:fileName/', async (req, res) => {
res.status(200).json({
message: 'Workflow scheduled successfully',
runId,
cronExpression,
// cronExpression,
// nextRunTime: getNextRunTime(cronExpression, timezone)
});
} catch (error) {
console.error('Error scheduling workflow:', error);
res.status(500).json({ error: 'Failed to schedule workflow' });