parent
3f749131cf
commit
4de1dc6deb
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,21 @@ |
||||
const getAllWorkflows = async (query = {}) => { |
||||
const workflows = await bpmsDB.bpms_workflow.findAll({ |
||||
where: { |
||||
// id:workflowId,
|
||||
deletedAt: { |
||||
[Op.is]: null |
||||
}, |
||||
version: { |
||||
[Op.gt]: 0 |
||||
}, |
||||
...query |
||||
}, |
||||
raw: true |
||||
}) |
||||
return workflows; |
||||
} |
||||
|
||||
module.exports = { |
||||
getAllWorkflows, |
||||
|
||||
} |
Loading…
Reference in new issue