@eeplatform/basic-edu 1.10.37 → 1.10.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5424,7 +5424,8 @@ function useEnrollmentService() {
|
|
|
5424
5424
|
getAll: _getAll,
|
|
5425
5425
|
getByApplicantInfo: _getByApplicantInfo,
|
|
5426
5426
|
getById: _getById,
|
|
5427
|
-
updateStatusById: _updateStatusById
|
|
5427
|
+
updateStatusById: _updateStatusById,
|
|
5428
|
+
removeProgramById
|
|
5428
5429
|
} = useEnrollmentRepo();
|
|
5429
5430
|
const {
|
|
5430
5431
|
add: addProgramScreening,
|
|
@@ -5619,6 +5620,7 @@ function useEnrollmentService() {
|
|
|
5619
5620
|
}
|
|
5620
5621
|
if (programScreening && programScreening.status === "cancelled" && enrollment.status === "cancelled" && enrollment.specialProgram && status === "pending") {
|
|
5621
5622
|
await updateStatusByApplicantId(_id, "reclassified", session);
|
|
5623
|
+
await removeProgramById(_id, session);
|
|
5622
5624
|
}
|
|
5623
5625
|
await session.commitTransaction();
|
|
5624
5626
|
return "Enrollment accepted successfully";
|