@eeplatform/basic-edu 1.10.38 → 1.10.40

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
@@ -6474,7 +6474,7 @@ function useSchoolRepo() {
6474
6474
  cacheKeyOptions.prefix = prefix;
6475
6475
  }
6476
6476
  if (search) {
6477
- query.$text = { $search: search };
6477
+ query.$text = { $search: `"${search}"` };
6478
6478
  cacheKeyOptions.search = search;
6479
6479
  }
6480
6480
  const cacheKey = makeCacheKey8(namespace_collection, cacheKeyOptions);
@@ -40021,7 +40021,7 @@ var allowedSectionStudentStatuses = [
40021
40021
  ];
40022
40022
  var schemaSectionStudent = Joi33.object({
40023
40023
  _id: Joi33.string().hex().optional().allow(null, ""),
40024
- lrn: Joi33.string().required(),
40024
+ lrn: Joi33.string().optional().allow(null, ""),
40025
40025
  school: Joi33.string().hex().required(),
40026
40026
  schoolName: Joi33.string().optional().allow(null, ""),
40027
40027
  section: Joi33.string().hex().required(),
@@ -42453,9 +42453,6 @@ function useSectionService() {
42453
42453
  if (!student._id) {
42454
42454
  throw new BadRequestError64("Learner ID is missing.");
42455
42455
  }
42456
- if (!student.learnerInfo.lrn) {
42457
- throw new BadRequestError64("Learner LRN is missing.");
42458
- }
42459
42456
  const existingStudent = await getStudent({
42460
42457
  student: student._id.toString(),
42461
42458
  schoolYear: value.schoolYear,