@eeplatform/basic-edu 1.10.20 → 1.10.21
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 +1 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3121,7 +3121,6 @@ function MLearner(value) {
|
|
|
3121
3121
|
if (value.specialProgram && typeof value.specialProgram === "string") {
|
|
3122
3122
|
try {
|
|
3123
3123
|
value.specialProgram = new ObjectId5(value.specialProgram);
|
|
3124
|
-
value.status = "screening";
|
|
3125
3124
|
} catch (error2) {
|
|
3126
3125
|
throw new BadRequestError8("Invalid specialProgram format");
|
|
3127
3126
|
}
|
|
@@ -36176,7 +36175,6 @@ function useEnrollmentService() {
|
|
|
36176
36175
|
if (status === "accepted") {
|
|
36177
36176
|
delete enrollment._id;
|
|
36178
36177
|
enrollment.school = enrollment.school.toString();
|
|
36179
|
-
enrollment.status = "active";
|
|
36180
36178
|
enrollment.updatedAt = "";
|
|
36181
36179
|
enrollment.createdAt = /* @__PURE__ */ new Date();
|
|
36182
36180
|
enrollment.deletedAt = "";
|
|
@@ -36212,14 +36210,13 @@ function useEnrollmentService() {
|
|
|
36212
36210
|
if (enrollment.seniorHighInfo?.strand) {
|
|
36213
36211
|
enrollment.seniorHighInfo.strand = enrollment.seniorHighInfo?.strand?.toString();
|
|
36214
36212
|
}
|
|
36213
|
+
enrollment.status = "active";
|
|
36215
36214
|
await addLearner(enrollment, session);
|
|
36216
36215
|
}
|
|
36217
36216
|
const programScreening = await getByApplicantId(_id);
|
|
36218
36217
|
if (programScreening) {
|
|
36219
36218
|
if (["cancelled", "withdrawn"].includes(status)) {
|
|
36220
36219
|
await updateStatusByApplicantId(_id, "cancelled", session);
|
|
36221
|
-
} else {
|
|
36222
|
-
await updateStatusByApplicantId(_id, status, session);
|
|
36223
36220
|
}
|
|
36224
36221
|
}
|
|
36225
36222
|
await session.commitTransaction();
|