fix: uncomment workflowQueue code
This commit is contained in:
@@ -304,16 +304,16 @@ router.put('/schedule/:id/', requireSignIn, async (req, res) => {
|
|||||||
const runId = uuid();
|
const runId = uuid();
|
||||||
const userId = req.user.id;
|
const userId = req.user.id;
|
||||||
|
|
||||||
// await workflowQueue.add(
|
await workflowQueue.add(
|
||||||
// 'run workflow',
|
'run workflow',
|
||||||
// { id, runId, userId },
|
{ id, runId, userId },
|
||||||
// {
|
{
|
||||||
// repeat: {
|
repeat: {
|
||||||
// pattern: cronExpression,
|
pattern: cronExpression,
|
||||||
// tz: timezone
|
tz: timezone
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// );
|
);
|
||||||
|
|
||||||
res.status(200).json({
|
res.status(200).json({
|
||||||
message: 'success',
|
message: 'success',
|
||||||
|
|||||||
Reference in New Issue
Block a user