From 0c08d27a607bc0bcf3b9cd16d8bea059755f484e Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Tue, 22 Oct 2024 16:57:19 +0530 Subject: [PATCH] fix: uncomment workflowQueue code --- server/src/routes/storage.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server/src/routes/storage.ts b/server/src/routes/storage.ts index c684d6ea..e5135fa3 100644 --- a/server/src/routes/storage.ts +++ b/server/src/routes/storage.ts @@ -304,16 +304,16 @@ router.put('/schedule/:id/', requireSignIn, async (req, res) => { const runId = uuid(); const userId = req.user.id; - // await workflowQueue.add( - // 'run workflow', - // { id, runId, userId }, - // { - // repeat: { - // pattern: cronExpression, - // tz: timezone - // } - // } - // ); + await workflowQueue.add( + 'run workflow', + { id, runId, userId }, + { + repeat: { + pattern: cronExpression, + tz: timezone + } + } + ); res.status(200).json({ message: 'success',