@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -3249,22 +3249,6 @@ function MLearner(value) {
|
|
|
3249
3249
|
throw new import_nodejs_utils8.BadRequestError("Invalid specialProgram format");
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
|
-
if (value.seniorHighInfo) {
|
|
3253
|
-
if (value.seniorHighInfo.track && typeof value.seniorHighInfo.track === "string") {
|
|
3254
|
-
try {
|
|
3255
|
-
value.seniorHighInfo.track = new import_mongodb5.ObjectId(value.seniorHighInfo.track);
|
|
3256
|
-
} catch (error2) {
|
|
3257
|
-
throw new import_nodejs_utils8.BadRequestError("Invalid seniorHighInfo.track format");
|
|
3258
|
-
}
|
|
3259
|
-
}
|
|
3260
|
-
if (value.seniorHighInfo.strand && typeof value.seniorHighInfo.strand === "string") {
|
|
3261
|
-
try {
|
|
3262
|
-
value.seniorHighInfo.strand = new import_mongodb5.ObjectId(value.seniorHighInfo.strand);
|
|
3263
|
-
} catch (error2) {
|
|
3264
|
-
throw new import_nodejs_utils8.BadRequestError("Invalid seniorHighInfo.strand format");
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
3252
|
return {
|
|
3269
3253
|
_id: value._id ?? void 0,
|
|
3270
3254
|
region: value.region,
|
|
@@ -3772,7 +3756,7 @@ function useLearnerRepo() {
|
|
|
3772
3756
|
}
|
|
3773
3757
|
if (strand) {
|
|
3774
3758
|
try {
|
|
3775
|
-
query["seniorHighInfo.strand"] =
|
|
3759
|
+
query["seniorHighInfo.strand"] = strand;
|
|
3776
3760
|
} catch (error) {
|
|
3777
3761
|
throw new import_nodejs_utils10.BadRequestError("Invalid seniorHighInfo.strand format");
|
|
3778
3762
|
}
|
|
@@ -3860,19 +3844,11 @@ function useLearnerRepo() {
|
|
|
3860
3844
|
cacheKeyOptions.specialProgram = "none";
|
|
3861
3845
|
}
|
|
3862
3846
|
if (value.track) {
|
|
3863
|
-
|
|
3864
|
-
query["seniorHighInfo.track"] = new import_mongodb7.ObjectId(value.track);
|
|
3865
|
-
} catch (error2) {
|
|
3866
|
-
throw new import_nodejs_utils10.BadRequestError("Invalid track ID.");
|
|
3867
|
-
}
|
|
3847
|
+
query["seniorHighInfo.track"] = value.track;
|
|
3868
3848
|
cacheKeyOptions.track = value.track.toString();
|
|
3869
3849
|
}
|
|
3870
3850
|
if (value.strand) {
|
|
3871
|
-
|
|
3872
|
-
query["seniorHighInfo.strand"] = new import_mongodb7.ObjectId(value.strand);
|
|
3873
|
-
} catch (error2) {
|
|
3874
|
-
throw new import_nodejs_utils10.BadRequestError("Invalid strand ID.");
|
|
3875
|
-
}
|
|
3851
|
+
query["seniorHighInfo.strand"] = value.strand;
|
|
3876
3852
|
cacheKeyOptions.strand = value.strand.toString();
|
|
3877
3853
|
}
|
|
3878
3854
|
const cacheKey = (0, import_nodejs_utils10.makeCacheKey)(namespace_collection, cacheKeyOptions);
|