You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
413 B

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,
}