nicot 1.1.24 → 1.1.26

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.
package/dist/index.mjs CHANGED
@@ -654,17 +654,20 @@ var TimeBase = class extends PageSettingsDto {
654
654
  __decorateClass([
655
655
  CreateDateColumn({ select: false }),
656
656
  NotColumn(),
657
- NotInResult({ entityVersioningDate: true })
657
+ NotInResult({ entityVersioningDate: true }),
658
+ Reflect.metadata("design:type", Date)
658
659
  ], TimeBase.prototype, "createTime", 2);
659
660
  __decorateClass([
660
661
  UpdateDateColumn({ select: false }),
661
662
  NotColumn(),
662
- NotInResult({ entityVersioningDate: true })
663
+ NotInResult({ entityVersioningDate: true }),
664
+ Reflect.metadata("design:type", Date)
663
665
  ], TimeBase.prototype, "updateTime", 2);
664
666
  __decorateClass([
665
667
  DeleteDateColumn({ select: false }),
666
668
  NotColumn(),
667
- NotInResult({ entityVersioningDate: true })
669
+ NotInResult({ entityVersioningDate: true }),
670
+ Reflect.metadata("design:type", Date)
668
671
  ], TimeBase.prototype, "deleteTime", 2);
669
672
 
670
673
  // src/bases/id-base.ts
@@ -1099,6 +1102,7 @@ var CrudBase = class {
1099
1102
  this.crudOptions.relations,
1100
1103
  (r) => !r.computed
1101
1104
  );
1105
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
1102
1106
  this.extraGetQuery = this.crudOptions.extraGetQuery || ((qb) => {
1103
1107
  });
1104
1108
  this.log = new ConsoleLogger(`${this.entityClass.name}Service`);
@@ -1146,7 +1150,7 @@ var CrudBase = class {
1146
1150
  }
1147
1151
  async _batchCreate(ents, beforeCreate, skipErrors = false) {
1148
1152
  const entsWithId = ents.filter((ent) => ent.id != null);
1149
- const result = await this.repo.manager.transaction(async (mdb) => {
1153
+ return this.repo.manager.transaction(async (mdb) => {
1150
1154
  let skipped = [];
1151
1155
  const repo = mdb.getRepository(this.entityClass);
1152
1156
  let entsToSave = ents;
@@ -1247,7 +1251,6 @@ var CrudBase = class {
1247
1251
  throw new BlankReturnMessageDto2(500, "Internal error").toException();
1248
1252
  }
1249
1253
  });
1250
- return result;
1251
1254
  }
1252
1255
  async create(_ent, beforeCreate) {
1253
1256
  if (!_ent) {