@eeplatform/basic-edu 1.10.21 → 1.10.23

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.10.23
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e5d4db: Use top-level specialProgram in queries
8
+
9
+ ## 1.10.22
10
+
11
+ ### Patch Changes
12
+
13
+ - 5cd19b0: Default specialProgram to none; tidy params
14
+
3
15
  ## 1.10.21
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -3843,13 +3843,14 @@ function useLearnerRepo() {
3843
3843
  }
3844
3844
  if (value.specialProgram) {
3845
3845
  try {
3846
- query["learnerInfo.specialProgram"] = new import_mongodb7.ObjectId(
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();
3851
+ } else {
3852
+ query["specialProgram"] = { $in: [null, ""] };
3853
+ cacheKeyOptions.specialProgram = "none";
3853
3854
  }
3854
3855
  if (value.track) {
3855
3856
  try {