@punks/backend-entity-manager 0.0.469 → 0.0.470
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/cjs/index.js +5 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/errors.d.ts +1 -1
- package/dist/esm/index.js +5 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/errors.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -124,8 +124,10 @@ class EntityNotFoundException extends EntityManagerException {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
class MultipleEntitiesFoundException extends EntityManagerException {
|
|
127
|
-
constructor() {
|
|
128
|
-
super(
|
|
127
|
+
constructor(params, items) {
|
|
128
|
+
super(`Multiple entities found: ${items
|
|
129
|
+
.map((item) => item.id)
|
|
130
|
+
.join(", ")} - params: ${JSON.stringify(params)}`);
|
|
129
131
|
}
|
|
130
132
|
}
|
|
131
133
|
class EntityManagerConfigurationError extends EntityManagerException {
|
|
@@ -1263,7 +1265,7 @@ class EntitiesUpsertByCommand {
|
|
|
1263
1265
|
};
|
|
1264
1266
|
}
|
|
1265
1267
|
if (items.length > 1) {
|
|
1266
|
-
throw new
|
|
1268
|
+
throw new MultipleEntitiesFoundException(params, items);
|
|
1267
1269
|
}
|
|
1268
1270
|
// todo: parametrize id field
|
|
1269
1271
|
const id = items[0].id;
|
|
@@ -41318,9 +41320,6 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
41318
41320
|
: {}),
|
|
41319
41321
|
...(options?.forceDelivery || sendgridSettings.value.forceDelivery
|
|
41320
41322
|
? {
|
|
41321
|
-
bypassListManagement: {
|
|
41322
|
-
enable: true,
|
|
41323
|
-
},
|
|
41324
41323
|
bypassBounceManagement: {
|
|
41325
41324
|
enable: true,
|
|
41326
41325
|
},
|
|
@@ -41392,9 +41391,6 @@ let SendgridEmailProvider = class SendgridEmailProvider {
|
|
|
41392
41391
|
: {}),
|
|
41393
41392
|
...(options?.forceDelivery || sendgridSettings.value.forceDelivery
|
|
41394
41393
|
? {
|
|
41395
|
-
// bypassListManagement: {
|
|
41396
|
-
// enable: true,
|
|
41397
|
-
// },
|
|
41398
41394
|
bypassBounceManagement: {
|
|
41399
41395
|
enable: true,
|
|
41400
41396
|
},
|