- 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:
Joao Correia
2025-02-08 15:26:16 +00:00
parent 991adede96
commit cbe353c2c5
3 changed files with 72 additions and 17 deletions

View File

@@ -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();
};