Skip to content

Commit

Permalink
fix: getEntityName implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Sep 28, 2023
1 parent 4a39640 commit bbd3abc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/common/database/base.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type {
Dictionary,
EntityData,
EntityManager,
EntityName,
FilterQuery,
FindOptions,
Loaded,
Expand Down Expand Up @@ -45,11 +44,11 @@ export class BaseRepository<T extends BaseEntity> extends EntityRepository<T> {
}

/**
* The function `getEntityName()` returns the entity name of type `EntityName<T>`.
* @returns The entity name of type `EntityName<T>`.
* Returns the entity name.
* @returns The entity name as a string.
*/
getEntityName(): EntityName<T> {
return this.entityName;
getEntityName(): string {
return this.entityName.toString();
}

/**
Expand Down

0 comments on commit bbd3abc

Please sign in to comment.