From 2358b0435bb104701334ee32032c5c8fb538135c Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 11 Sep 2024 23:33:37 +0530 Subject: [PATCH] chore: -rm comments --- server/src/routes/storage.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index 1f90372b..a326ff26 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -209,7 +209,6 @@ router.put('/schedule/:fileName/', async (req, res) => { return res.status(400).json({ error: 'Missing required parameters' }); } - // Validate inputs if (!['HOURS', 'DAYS', 'WEEKS', 'MONTHS'].includes(frequencyUnit)) { return res.status(400).json({ error: 'Invalid frequency unit' }); } @@ -228,7 +227,6 @@ router.put('/schedule/:fileName/', async (req, res) => { return res.status(400).json({ error: 'Invalid start day' }); } - // Generate cron expression let cronExpression; switch (frequencyUnit) { case 'HOURS': @@ -256,7 +254,6 @@ router.put('/schedule/:fileName/', async (req, res) => { const runId = uuid(); - // Schedule the recurring job await workflowQueue.add( 'run workflow', { fileName, runId },