@eeplatform/basic-edu 1.10.9 → 1.10.11
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 +12 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +687 -686
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
|
|
2700
|
+
throw new import_nodejs_utils6.BadRequestError("Failed to start database session.");
|
|
2701
2701
|
}
|
|
2702
2702
|
try {
|
|
2703
2703
|
session.startTransaction();
|