fix: uncomment workflowQueue code

This commit is contained in:
karishmas6
2024-10-22 16:57:19 +05:30
parent 43eaf01137
commit 0c08d27a60

View File

@@ -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',