@eeplatform/basic-edu 1.10.14 → 1.10.15
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.d.ts +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -46616,7 +46616,6 @@ function useKindergartenRoutineRepo() {
|
|
|
46616
46616
|
} = {}) {
|
|
46617
46617
|
page = page > 0 ? page - 1 : 0;
|
|
46618
46618
|
const query = {
|
|
46619
|
-
deletedAt: { $in: ["", null] },
|
|
46620
46619
|
status
|
|
46621
46620
|
};
|
|
46622
46621
|
sort = Object.keys(sort).length > 0 ? sort : { _id: 1 };
|
|
@@ -46965,7 +46964,7 @@ function useKindergartenRoutineController() {
|
|
|
46965
46964
|
const limit = typeof req.query.limit === "string" ? Number(req.query.limit) : 10;
|
|
46966
46965
|
const search = req.query.search ?? "";
|
|
46967
46966
|
const status = req.query.status ?? "active";
|
|
46968
|
-
const school = req.
|
|
46967
|
+
const school = req.params.school ?? "";
|
|
46969
46968
|
const section = req.query.section ?? "";
|
|
46970
46969
|
const classroom = req.query.classroom ?? "";
|
|
46971
46970
|
const type = req.query.type ?? "";
|
|
@@ -47191,9 +47190,10 @@ function useKindergartenDomainRepo() {
|
|
|
47191
47190
|
{ key: { createdBy: 1 } },
|
|
47192
47191
|
{ key: { title: "text" } },
|
|
47193
47192
|
{
|
|
47194
|
-
key: { title: 1, school: 1
|
|
47193
|
+
key: { title: 1, school: 1 },
|
|
47195
47194
|
unique: true,
|
|
47196
|
-
name: "unique_kindergarten_domain"
|
|
47195
|
+
name: "unique_kindergarten_domain",
|
|
47196
|
+
partialFilterExpression: { status: "active" }
|
|
47197
47197
|
}
|
|
47198
47198
|
]);
|
|
47199
47199
|
} catch (error) {
|
|
@@ -47516,6 +47516,8 @@ function useKindergartenDomainService() {
|
|
|
47516
47516
|
);
|
|
47517
47517
|
}
|
|
47518
47518
|
await _deleteById(id, session);
|
|
47519
|
+
await session.commitTransaction();
|
|
47520
|
+
return "Successfully deleted kindergarten domain.";
|
|
47519
47521
|
} catch (error) {
|
|
47520
47522
|
await session.abortTransaction();
|
|
47521
47523
|
if (error instanceof AppError33) {
|
|
@@ -47576,7 +47578,7 @@ function useKindergartenDomainController() {
|
|
|
47576
47578
|
const limit = typeof req.query.limit === "string" ? Number(req.query.limit) : 10;
|
|
47577
47579
|
const search = req.query.search ?? "";
|
|
47578
47580
|
const status = req.query.status ?? "active";
|
|
47579
|
-
const school = req.
|
|
47581
|
+
const school = req.params.school ?? "";
|
|
47580
47582
|
const createdBy = req.query.createdBy ?? "";
|
|
47581
47583
|
const isPageNumber = isFinite(page);
|
|
47582
47584
|
if (!isPageNumber) {
|