@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.10.38
4
+
5
+ ### Patch Changes
6
+
7
+ - 14c385d: Fix enrollment service, remove special program to reclassified application
8
+
3
9
  ## 1.10.37
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -5489,7 +5489,8 @@ function useEnrollmentService() {
5489
5489
  getAll: _getAll,
5490
5490
  getByApplicantInfo: _getByApplicantInfo,
5491
5491
  getById: _getById,
5492
- updateStatusById: _updateStatusById
5492
+ updateStatusById: _updateStatusById,
5493
+ removeProgramById
5493
5494
  } = useEnrollmentRepo();
5494
5495
  const {
5495
5496
  add: addProgramScreening,
@@ -5684,6 +5685,7 @@ function useEnrollmentService() {
5684
5685
  }
5685
5686
  if (programScreening && programScreening.status === "cancelled" && enrollment.status === "cancelled" && enrollment.specialProgram && status === "pending") {
5686
5687
  await updateStatusByApplicantId(_id, "reclassified", session);
5688
+ await removeProgramById(_id, session);
5687
5689
  }
5688
5690
  await session.commitTransaction();
5689
5691
  return "Enrollment accepted successfully";