add error message and stop loading if something went wrong while loading exam in approval workflow

This commit is contained in:
Joao Correia
2025-02-20 10:40:31 +00:00
parent df2f83e496
commit 14e2702aca
2 changed files with 9 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ export async function createApprovalWorkflowOnExamCreation(examAuthor: string, e
if (totalCount === 0) { // current behaviour: if no workflow was found skip approval process
await db.collection(examModule).updateOne(
{ id: examId },
{ $set: { id: examId, isDiagnostic: false }},
{ $set: { id: examId, access: "private" }},
{ upsert: true }
);
}