diff --git a/api/src/utils/generics/base-service.ts b/api/src/utils/generics/base-service.ts index dd2b6d9b..fede7015 100644 --- a/api/src/utils/generics/base-service.ts +++ b/api/src/utils/generics/base-service.ts @@ -72,6 +72,26 @@ export abstract class BaseService< return await this.repository.findAllAndPopulate(sort); } + /** + * @deprecated + */ + async findPage( + filters: TFilterQuery, + pageQueryDto: PageQueryDto, + ): Promise { + return await this.repository.findPage(filters, pageQueryDto); + } + + /** + * @deprecated + */ + async findPageAndPopulate( + filters: TFilterQuery, + pageQueryDto: PageQueryDto, + ): Promise { + return await this.repository.findPageAndPopulate(filters, pageQueryDto); + } + async countAll(): Promise { return await this.repository.countAll(); }