@loomcore/api 0.0.42 → 0.0.43
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.
|
@@ -405,7 +405,11 @@ export class GenericApiService {
|
|
|
405
405
|
}
|
|
406
406
|
async prepareDataForBatchUpdate(userContext, entities) {
|
|
407
407
|
console.log('--- DIAGNOSTICS: Executing prepareDataForBatchUpdate ---');
|
|
408
|
-
return Promise.all(entities.map(item =>
|
|
408
|
+
return Promise.all(entities.map(item => {
|
|
409
|
+
const allowId = true;
|
|
410
|
+
console.log(`in prepareDataForBatchUpdate, item is ${JSON.stringify(item)}, and allowId is ${allowId}`);
|
|
411
|
+
return this.prepareEntity(userContext, item, false, allowId);
|
|
412
|
+
}));
|
|
409
413
|
}
|
|
410
414
|
async prepareEntity(userContext, entity, isCreate, allowId = false) {
|
|
411
415
|
const preparedEntity = _.clone(entity);
|