@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3232,7 +3232,6 @@ function MLearner(value) {
|
|
|
3232
3232
|
if (value.specialProgram && typeof value.specialProgram === "string") {
|
|
3233
3233
|
try {
|
|
3234
3234
|
value.specialProgram = new import_mongodb5.ObjectId(value.specialProgram);
|
|
3235
|
-
value.status = "screening";
|
|
3236
3235
|
} catch (error2) {
|
|
3237
3236
|
throw new import_nodejs_utils8.BadRequestError("Invalid specialProgram format");
|
|
3238
3237
|
}
|
|
@@ -36206,7 +36205,6 @@ function useEnrollmentService() {
|
|
|
36206
36205
|
if (status === "accepted") {
|
|
36207
36206
|
delete enrollment._id;
|
|
36208
36207
|
enrollment.school = enrollment.school.toString();
|
|
36209
|
-
enrollment.status = "active";
|
|
36210
36208
|
enrollment.updatedAt = "";
|
|
36211
36209
|
enrollment.createdAt = /* @__PURE__ */ new Date();
|
|
36212
36210
|
enrollment.deletedAt = "";
|
|
@@ -36242,14 +36240,13 @@ function useEnrollmentService() {
|
|
|
36242
36240
|
if (enrollment.seniorHighInfo?.strand) {
|
|
36243
36241
|
enrollment.seniorHighInfo.strand = enrollment.seniorHighInfo?.strand?.toString();
|
|
36244
36242
|
}
|
|
36243
|
+
enrollment.status = "active";
|
|
36245
36244
|
await addLearner(enrollment, session);
|
|
36246
36245
|
}
|
|
36247
36246
|
const programScreening = await getByApplicantId(_id);
|
|
36248
36247
|
if (programScreening) {
|
|
36249
36248
|
if (["cancelled", "withdrawn"].includes(status)) {
|
|
36250
36249
|
await updateStatusByApplicantId(_id, "cancelled", session);
|
|
36251
|
-
} else {
|
|
36252
|
-
await updateStatusByApplicantId(_id, status, session);
|
|
36253
36250
|
}
|
|
36254
36251
|
}
|
|
36255
36252
|
await session.commitTransaction();
|