xcally-nest-library 0.0.10 → 0.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xcally-nest-library",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
26
26
  "test:e2e": "jest --config ./test/jest-e2e.json",
27
27
  "lib:link": "pnpm link --global",
28
- "lib:unlink": "pnpm unlink xcally-nest-libs"
28
+ "lib:unlink": "pnpm unlink xcally-nest-libs --global"
29
29
  },
30
30
  "dependencies": {
31
31
  "@nestjs/axios": "^3.0.2",
@@ -94,4 +94,14 @@ export class GenericRepository<E extends ObjectLiteral> {
94
94
  id: Equal(id),
95
95
  } as unknown as FindOptionsWhere<E>);
96
96
  }
97
+
98
+ /**
99
+ * Removes an entity from the database based on its ID.
100
+ *
101
+ * @param id - The ID of the entity to remove.
102
+ * @returns A promise that resolves when the entity is successfully removed.
103
+ */
104
+ async remove(id: number): Promise<void> {
105
+ await this.repository.delete(id);
106
+ }
97
107
  }