- start only one of the configured workflows (randomly at the moment) for the exam Author.
- skip approval process for admins
This commit is contained in:
@@ -37,9 +37,9 @@ export const getApprovalWorkflowByFormIntaker = async (entityId: string, formInt
|
||||
export const getApprovalWorkflowsByExamId = async (examId: string) => {
|
||||
return await db
|
||||
.collection<ApprovalWorkflow>("active-workflows")
|
||||
.find({
|
||||
examId,
|
||||
status: { $in: ["pending"] }
|
||||
.find({
|
||||
examId,
|
||||
status: { $in: ["pending"] },
|
||||
})
|
||||
.toArray();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user