fix: revert base-service deprecated methods

This commit is contained in:
yassinedorbozgithub 2024-12-04 08:11:06 +01:00
parent a33c9f2510
commit 32f3dc8271

View File

@ -72,6 +72,26 @@ export abstract class BaseService<
return await this.repository.findAllAndPopulate(sort); return await this.repository.findAllAndPopulate(sort);
} }
/**
* @deprecated
*/
async findPage(
filters: TFilterQuery<T>,
pageQueryDto: PageQueryDto<T>,
): Promise<T[]> {
return await this.repository.findPage(filters, pageQueryDto);
}
/**
* @deprecated
*/
async findPageAndPopulate(
filters: TFilterQuery<T>,
pageQueryDto: PageQueryDto<T>,
): Promise<TFull[]> {
return await this.repository.findPageAndPopulate(filters, pageQueryDto);
}
async countAll(): Promise<number> { async countAll(): Promise<number> {
return await this.repository.countAll(); return await this.repository.countAll();
} }