@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/dist/index.mjs CHANGED
@@ -4351,9 +4351,6 @@ function useProgramScreeningRepo() {
4351
4351
  applicant: _id,
4352
4352
  status: { $ne: "deleted" }
4353
4353
  });
4354
- if (!result) {
4355
- throw new BadRequestError14("Program screening not found.");
4356
- }
4357
4354
  setCache(cacheKey, result, 300).then(() => {
4358
4355
  logger11.log({
4359
4356
  level: "info",
@@ -42983,6 +42980,11 @@ function useSectionService() {
42983
42980
  teachers.push(...teachersData.items);
42984
42981
  pageTeacher++;
42985
42982
  } while (pageTeacher < pagesTeachers);
42983
+ if (!teachers.length) {
42984
+ throw new BadRequestError64(
42985
+ "Could not proceed, no teaching personnel found."
42986
+ );
42987
+ }
42986
42988
  if (teachers.length) {
42987
42989
  for (let index = 0; index < teachers.length; index++) {
42988
42990
  const teacher = teachers[index];