@eeplatform/basic-edu 1.10.9 → 1.10.10

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.10.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 7a326c0: fix
8
+
3
9
  ## 1.10.9
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -2693,11 +2693,11 @@ function useSubjectService() {
2693
2693
  async function addMany(value) {
2694
2694
  const { error } = schemaSubjectAdd.validate(value);
2695
2695
  if (error) {
2696
- throw new Error(`Validation error: ${error.message}`);
2696
+ throw new import_nodejs_utils6.BadRequestError(`Validation error: ${error.message}`);
2697
2697
  }
2698
2698
  const session = import_nodejs_utils6.useAtlas.getClient()?.startSession();
2699
2699
  if (!session) {
2700
- throw new Error("Failed to start database session.");
2700
+ throw new import_nodejs_utils6.BadRequestError("Failed to start database session.");
2701
2701
  }
2702
2702
  try {
2703
2703
  session.startTransaction();