rez_core 2.1.5 → 2.1.6
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/package.json
CHANGED
|
@@ -469,10 +469,6 @@ export class MasterService {
|
|
|
469
469
|
|
|
470
470
|
const existing = await qb.limit(1).getRawOne();
|
|
471
471
|
|
|
472
|
-
row.entity_type = entityType;
|
|
473
|
-
row.organization_id = loggedInUser.organization_id;
|
|
474
|
-
row.status = 'ACTIVE';
|
|
475
|
-
let errors = [];
|
|
476
472
|
if (existing) {
|
|
477
473
|
if (duplicateHandling === 'skip_duplicates') continue;
|
|
478
474
|
if (duplicateHandling === 'overwrite_items') {
|
|
@@ -483,5 +479,11 @@ export class MasterService {
|
|
|
483
479
|
await entityService.createEntity(row, loggedInUser);
|
|
484
480
|
}
|
|
485
481
|
}
|
|
482
|
+
|
|
483
|
+
// if (errors.length > 0) {
|
|
484
|
+
// throw new Error(
|
|
485
|
+
// `Validation errors found in the uploaded data: ${JSON.stringify(errors)}`,
|
|
486
|
+
// );
|
|
487
|
+
// }
|
|
486
488
|
}
|
|
487
489
|
}
|