@loomcore/api 0.0.40 → 0.0.41
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.
|
@@ -407,7 +407,11 @@ export class GenericApiService {
|
|
|
407
407
|
}
|
|
408
408
|
async prepareEntity(userContext, entity, isCreate, allowId = false) {
|
|
409
409
|
const preparedEntity = _.clone(entity);
|
|
410
|
+
console.log(`in prepareEntity, pluralResourceName is ${this.pluralResourceName}`);
|
|
411
|
+
console.log(`before stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
412
|
+
console.log(`modelSpec is ${JSON.stringify(this.modelSpec)}`);
|
|
410
413
|
this.stripSenderProvidedSystemProperties(userContext, preparedEntity, allowId);
|
|
414
|
+
console.log(`after stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
|
|
411
415
|
if (this.modelSpec?.isAuditable) {
|
|
412
416
|
if (isCreate) {
|
|
413
417
|
this.auditForCreate(userContext, preparedEntity);
|