@eeplatform/basic-edu 1.9.2 → 1.9.3

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.9.3
4
+
5
+ ### Patch Changes
6
+
7
+ - f941c74: Program screening - Remove return value check in getById
8
+
3
9
  ## 1.9.2
4
10
 
5
11
  ### 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",