@eeplatform/basic-edu 1.10.22 → 1.10.24
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 +12 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/basic-edu
|
|
2
2
|
|
|
3
|
+
## 1.10.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4e4bf10: Set status to 'screening' for specialProgram
|
|
8
|
+
|
|
9
|
+
## 1.10.23
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 4e5d4db: Use top-level specialProgram in queries
|
|
14
|
+
|
|
3
15
|
## 1.10.22
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -3843,15 +3843,13 @@ function useLearnerRepo() {
|
|
|
3843
3843
|
}
|
|
3844
3844
|
if (value.specialProgram) {
|
|
3845
3845
|
try {
|
|
3846
|
-
query["
|
|
3847
|
-
value.specialProgram
|
|
3848
|
-
);
|
|
3846
|
+
query["specialProgram"] = new import_mongodb7.ObjectId(value.specialProgram);
|
|
3849
3847
|
} catch (error2) {
|
|
3850
3848
|
throw new import_nodejs_utils10.BadRequestError("Invalid special program ID.");
|
|
3851
3849
|
}
|
|
3852
3850
|
cacheKeyOptions.specialProgram = value.specialProgram.toString();
|
|
3853
3851
|
} else {
|
|
3854
|
-
query["
|
|
3852
|
+
query["specialProgram"] = { $in: [null, ""] };
|
|
3855
3853
|
cacheKeyOptions.specialProgram = "none";
|
|
3856
3854
|
}
|
|
3857
3855
|
if (value.track) {
|
|
@@ -36115,6 +36113,9 @@ function useEnrollmentService() {
|
|
|
36115
36113
|
);
|
|
36116
36114
|
}
|
|
36117
36115
|
}
|
|
36116
|
+
if (value.specialProgram) {
|
|
36117
|
+
value.status = "screening";
|
|
36118
|
+
}
|
|
36118
36119
|
const enrollmentId = await _add(value, session);
|
|
36119
36120
|
if (value.specialProgram) {
|
|
36120
36121
|
const programId = String(value.specialProgram);
|