@loomcore/api 0.0.44 → 0.0.46
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.
|
@@ -412,12 +412,11 @@ export class GenericApiService {
|
|
|
412
412
|
}));
|
|
413
413
|
}
|
|
414
414
|
async prepareEntity(userContext, entity, isCreate, allowId = false) {
|
|
415
|
+
console.log(`ENTRY: prepareEntity called with allowId = ${allowId}`);
|
|
415
416
|
const preparedEntity = _.clone(entity);
|
|
416
417
|
console.log(`in prepareEntity, pluralResourceName is ${this.pluralResourceName}`);
|
|
417
418
|
console.log(`before stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
418
|
-
console.log(`modelSpec is present = ${this.modelSpec !== undefined}`);
|
|
419
419
|
console.log(`allowId is ${allowId}`);
|
|
420
|
-
console.log(`About to call stripSenderProvidedSystemProperties with allowId = ${allowId}`);
|
|
421
420
|
this.stripSenderProvidedSystemProperties(userContext, preparedEntity, allowId);
|
|
422
421
|
console.log(`after stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
423
422
|
if (this.modelSpec?.isAuditable) {
|