Skip to content

Commit

Permalink
fix(): fix linter for eslint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
NarHakobyan committed Dec 25, 2024
1 parent 45aa616 commit 8999331
Show file tree
Hide file tree
Showing 4 changed files with 9,356 additions and 2,475 deletions.
8,353 changes: 7,730 additions & 623 deletions deno.lock

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"jsonwebtoken": "^9.0.2",
"libphonenumber-js": "^1.11.12",
"lodash": "^4.17.21",
"mime-types": "^2.1.35",
"mime-types": "^3.0.0",
"morgan": "^1.10.0",
"nestjs-cls": "^4.4.1",
"nestjs-i18n": "^10.4.9",
"nestjs-cls": "^4.5.0",
"nestjs-i18n": "^10.5.0",
"parse-duration": "^1.1.0",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
Expand All @@ -73,6 +73,7 @@
"tslib": "^2.8.1",
"typeorm": "0.3.19",
"typeorm-transactional": "~0.5.0",
"globals": "^15.14.0",
"uuid": "^9.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/abstract.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export abstract class AbstractEntity<
translations?: AbstractTranslationEntity[];

toDto(options?: O): DTO {
const dtoClass = this.constructor.prototype.dtoClass;
const dtoClass = Object.getPrototypeOf(this).dtoClass;

if (!dtoClass) {
throw new Error(
Expand Down
Loading

0 comments on commit 8999331

Please sign in to comment.