implement logging of exam edits on workflow's current step

This commit is contained in:
Joao Correia
2025-02-06 19:12:18 +00:00
parent 8711802b97
commit cf12a4ed4f
7 changed files with 201 additions and 6 deletions

View File

@@ -34,6 +34,16 @@ 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"] }
})
.toArray();
};
export const getFormIntakersByEntity = async (entityId: string) => {
const results = await db
.collection<ApprovalWorkflow>("configured-workflows")