@eeplatform/basic-edu 1.9.2 → 1.9.4
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 +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/basic-edu
|
|
2
2
|
|
|
3
|
+
## 1.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 0bf1dc4: Section management - required at least 1 personnel when generating sections
|
|
8
|
+
|
|
9
|
+
## 1.9.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- f941c74: Program screening - Remove return value check in getById
|
|
14
|
+
|
|
3
15
|
## 1.9.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1653,7 +1653,7 @@ declare function useProgramScreeningRepo(): {
|
|
|
1653
1653
|
deleteById: (_id: string | ObjectId) => Promise<string>;
|
|
1654
1654
|
updateById: (_id: string | ObjectId, value: Pick<TProgramScreening, "specialProgram" | "specialProgramName" | "status">) => Promise<string>;
|
|
1655
1655
|
updateStatusByApplicantId: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<string>;
|
|
1656
|
-
getByApplicantId: (_id: string | ObjectId) => Promise<TProgramScreening>;
|
|
1656
|
+
getByApplicantId: (_id: string | ObjectId) => Promise<TProgramScreening | null>;
|
|
1657
1657
|
};
|
|
1658
1658
|
|
|
1659
1659
|
declare function useProgramScreeningController(): {
|
package/dist/index.js
CHANGED
|
@@ -4404,9 +4404,6 @@ function useProgramScreeningRepo() {
|
|
|
4404
4404
|
applicant: _id,
|
|
4405
4405
|
status: { $ne: "deleted" }
|
|
4406
4406
|
});
|
|
4407
|
-
if (!result) {
|
|
4408
|
-
throw new import_nodejs_utils15.BadRequestError("Program screening not found.");
|
|
4409
|
-
}
|
|
4410
4407
|
setCache(cacheKey, result, 300).then(() => {
|
|
4411
4408
|
import_nodejs_utils15.logger.log({
|
|
4412
4409
|
level: "info",
|
|
@@ -42891,6 +42888,11 @@ function useSectionService() {
|
|
|
42891
42888
|
teachers.push(...teachersData.items);
|
|
42892
42889
|
pageTeacher++;
|
|
42893
42890
|
} while (pageTeacher < pagesTeachers);
|
|
42891
|
+
if (!teachers.length) {
|
|
42892
|
+
throw new import_nodejs_utils69.BadRequestError(
|
|
42893
|
+
"Could not proceed, no teaching personnel found."
|
|
42894
|
+
);
|
|
42895
|
+
}
|
|
42894
42896
|
if (teachers.length) {
|
|
42895
42897
|
for (let index = 0; index < teachers.length; index++) {
|
|
42896
42898
|
const teacher = teachers[index];
|