@eeplatform/basic-edu 1.10.13 → 1.10.14
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 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5139,7 +5139,6 @@ function useProgramRepo() {
|
|
|
5139
5139
|
} = {}) {
|
|
5140
5140
|
page = page > 0 ? page - 1 : 0;
|
|
5141
5141
|
const query = {
|
|
5142
|
-
deletedAt: { $in: ["", null] },
|
|
5143
5142
|
status
|
|
5144
5143
|
};
|
|
5145
5144
|
sort = Object.keys(sort).length > 0 ? sort : { _id: 1 };
|
|
@@ -5428,7 +5427,7 @@ function useProgramController() {
|
|
|
5428
5427
|
const status = req.query.status ?? "active";
|
|
5429
5428
|
const school = req.query.school ?? "";
|
|
5430
5429
|
const isDefault = req.query.isDefault === "true" ? true : req.query.isDefault === "false" ? false : void 0;
|
|
5431
|
-
const gradeLevel = req.query.gradeLevel?.split(",")
|
|
5430
|
+
const gradeLevel = req.query.gradeLevel ? req.query.gradeLevel?.split(",") : [];
|
|
5432
5431
|
const isPageNumber = isFinite(page);
|
|
5433
5432
|
if (!isPageNumber) {
|
|
5434
5433
|
next(new BadRequestError19("Invalid page number."));
|