feat: !cron in res.send
This commit is contained in:
@@ -268,10 +268,10 @@ router.put('/schedule/:fileName/', async (req, res) => {
|
|||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
message: 'Workflow scheduled successfully',
|
message: 'Workflow scheduled successfully',
|
||||||
runId,
|
runId,
|
||||||
cronExpression,
|
// cronExpression,
|
||||||
// nextRunTime: getNextRunTime(cronExpression, timezone)
|
// nextRunTime: getNextRunTime(cronExpression, timezone)
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error scheduling workflow:', error);
|
console.error('Error scheduling workflow:', error);
|
||||||
res.status(500).json({ error: 'Failed to schedule workflow' });
|
res.status(500).json({ error: 'Failed to schedule workflow' });
|
||||||
|
|||||||
Reference in New Issue
Block a user