We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fc529 commit 18b9e20Copy full SHA for 18b9e20
api/src/certification/session-management/domain/usecases/cancel.js
@@ -27,13 +27,13 @@ export const cancel = async function ({
27
throw new NotFinalizedSessionError();
28
}
29
30
- certificationCourse.cancel();
31
- await certificationCourseRepository.update({ certificationCourse });
32
-
33
const certificationCancelledEvent = new CertificationCancelled({
34
- certificationCourseId: certificationCourse.getId(),
+ certificationCourseId,
35
juryId,
36
});
37
38
- return certificationRescoringRepository.execute({ event: certificationCancelledEvent });
+ await certificationRescoringRepository.execute({ event: certificationCancelledEvent });
+
+ certificationCourse.cancel();
+ await certificationCourseRepository.update({ certificationCourse });
39
};
0 commit comments