@eeplatform/basic-edu 1.8.4 → 1.8.5

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eeplatform/basic-edu
2
2
 
3
+ ## 1.8.5
4
+
5
+ ### Patch Changes
6
+
7
+ - b6607f7: Enrollment management - updated getById return type
8
+
3
9
  ## 1.8.4
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -367,7 +367,7 @@ declare function useEnrollmentRepo(): {
367
367
  length: number;
368
368
  }>;
369
369
  updateStatusById: (_id: string | ObjectId, status: string, session?: ClientSession) => Promise<mongodb.UpdateResult<bson.Document>>;
370
- getById: (_id: string | ObjectId, status?: string) => Promise<TLearner | null>;
370
+ getById: (_id: string | ObjectId, status?: string) => Promise<TEnrollment | null>;
371
371
  };
372
372
 
373
373
  declare function useEnrollmentService(): {
package/dist/index.js CHANGED
@@ -5562,6 +5562,7 @@ function useEnrollmentService() {
5562
5562
  enrollment.learnerInfo.lrn = lrn;
5563
5563
  await incrementById(counterId, session);
5564
5564
  }
5565
+ enrollment.specialProgram = enrollment.specialProgram?.toString();
5565
5566
  await addLearner(enrollment, session);
5566
5567
  }
5567
5568
  await session.commitTransaction();