@loomcore/api 0.0.42 → 0.0.44
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);
|
|
@@ -413,6 +417,7 @@ export class GenericApiService {
|
|
|
413
417
|
console.log(`before stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
414
418
|
console.log(`modelSpec is present = ${this.modelSpec !== undefined}`);
|
|
415
419
|
console.log(`allowId is ${allowId}`);
|
|
420
|
+
console.log(`About to call stripSenderProvidedSystemProperties with allowId = ${allowId}`);
|
|
416
421
|
this.stripSenderProvidedSystemProperties(userContext, preparedEntity, allowId);
|
|
417
422
|
console.log(`after stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
418
423
|
if (this.modelSpec?.isAuditable) {
|