@eeplatform/basic-edu 1.10.30 → 1.10.31
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 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3138,22 +3138,6 @@ function MLearner(value) {
|
|
|
3138
3138
|
throw new BadRequestError8("Invalid specialProgram format");
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
|
-
if (value.seniorHighInfo) {
|
|
3142
|
-
if (value.seniorHighInfo.track && typeof value.seniorHighInfo.track === "string") {
|
|
3143
|
-
try {
|
|
3144
|
-
value.seniorHighInfo.track = new ObjectId5(value.seniorHighInfo.track);
|
|
3145
|
-
} catch (error2) {
|
|
3146
|
-
throw new BadRequestError8("Invalid seniorHighInfo.track format");
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
if (value.seniorHighInfo.strand && typeof value.seniorHighInfo.strand === "string") {
|
|
3150
|
-
try {
|
|
3151
|
-
value.seniorHighInfo.strand = new ObjectId5(value.seniorHighInfo.strand);
|
|
3152
|
-
} catch (error2) {
|
|
3153
|
-
throw new BadRequestError8("Invalid seniorHighInfo.strand format");
|
|
3154
|
-
}
|
|
3155
|
-
}
|
|
3156
|
-
}
|
|
3157
3141
|
return {
|
|
3158
3142
|
_id: value._id ?? void 0,
|
|
3159
3143
|
region: value.region,
|
|
@@ -3685,7 +3669,7 @@ function useLearnerRepo() {
|
|
|
3685
3669
|
}
|
|
3686
3670
|
if (strand) {
|
|
3687
3671
|
try {
|
|
3688
|
-
query["seniorHighInfo.strand"] =
|
|
3672
|
+
query["seniorHighInfo.strand"] = strand;
|
|
3689
3673
|
} catch (error) {
|
|
3690
3674
|
throw new BadRequestError10("Invalid seniorHighInfo.strand format");
|
|
3691
3675
|
}
|
|
@@ -3773,19 +3757,11 @@ function useLearnerRepo() {
|
|
|
3773
3757
|
cacheKeyOptions.specialProgram = "none";
|
|
3774
3758
|
}
|
|
3775
3759
|
if (value.track) {
|
|
3776
|
-
|
|
3777
|
-
query["seniorHighInfo.track"] = new ObjectId7(value.track);
|
|
3778
|
-
} catch (error2) {
|
|
3779
|
-
throw new BadRequestError10("Invalid track ID.");
|
|
3780
|
-
}
|
|
3760
|
+
query["seniorHighInfo.track"] = value.track;
|
|
3781
3761
|
cacheKeyOptions.track = value.track.toString();
|
|
3782
3762
|
}
|
|
3783
3763
|
if (value.strand) {
|
|
3784
|
-
|
|
3785
|
-
query["seniorHighInfo.strand"] = new ObjectId7(value.strand);
|
|
3786
|
-
} catch (error2) {
|
|
3787
|
-
throw new BadRequestError10("Invalid strand ID.");
|
|
3788
|
-
}
|
|
3764
|
+
query["seniorHighInfo.strand"] = value.strand;
|
|
3789
3765
|
cacheKeyOptions.strand = value.strand.toString();
|
|
3790
3766
|
}
|
|
3791
3767
|
const cacheKey = makeCacheKey4(namespace_collection, cacheKeyOptions);
|