@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 => this.prepareEntity(userContext, item, false, true)));
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcore/api",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "private": false,
5
5
  "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb",
6
6
  "scripts": {