xcally-nest-library 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,5 +15,6 @@ export declare class GenericRepository<E extends ObjectLiteral> {
15
15
  findAll(): Promise<E[]>;
16
16
  countAll(): Promise<number>;
17
17
  findById(id: number): Promise<E>;
18
+ remove(id: number): Promise<void>;
18
19
  }
19
20
  export {};
@@ -37,6 +37,9 @@ class GenericRepository {
37
37
  id: (0, typeorm_1.Equal)(id),
38
38
  });
39
39
  }
40
+ async remove(id) {
41
+ await this.repository.delete(id);
42
+ }
40
43
  }
41
44
  exports.GenericRepository = GenericRepository;
42
45
  //# sourceMappingURL=generic.repository.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"generic.repository.js","sourceRoot":"","sources":["../../../../src/db/typeorm/generic.repository.ts"],"names":[],"mappings":";;;AAAA,qCAAuH;AACvH,qDAAqF;AASrF,MAAa,iBAAiB;IAI5B,YACmB,aAA4B,EAC7C,MAAuB,EACvB,cAAiC;QAFhB,kBAAa,GAAb,aAAa,CAAe;QAI7C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;QAC3D,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAOD,OAAO,CAAC,KAAoB;QAC1B,OAAO,IAAA,0BAAQ,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAC/D,CAAC;IAOD,IAAI,CAA2B,MAAS;QACtC,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IASD,KAAK,CAAC,MAAM,CAAiC,GAAM;QACjD,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EA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