@loomcore/api 0.0.39 → 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.
@@ -402,11 +402,16 @@ export class GenericApiService {
402
402
  }
403
403
  }
404
404
  async prepareDataForBatchUpdate(userContext, entities) {
405
+ console.log('--- DIAGNOSTICS: Executing prepareDataForBatchUpdate ---');
405
406
  return Promise.all(entities.map(item => this.prepareEntity(userContext, item, false, true)));
406
407
  }
407
408
  async prepareEntity(userContext, entity, isCreate, allowId = false) {
408
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)}`);
409
413
  this.stripSenderProvidedSystemProperties(userContext, preparedEntity, allowId);
414
+ console.log(`after stripping system properties, preparedEntity is ${JSON.stringify(preparedEntity)}`);
410
415
  if (this.modelSpec?.isAuditable) {
411
416
  if (isCreate) {
412
417
  this.auditForCreate(userContext, preparedEntity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcore/api",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "private": false,
5
5
  "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb",
6
6
  "scripts": {