mirror of
https://github.com/hexastack/hexabot
synced 2025-01-23 02:47:56 +00:00
fix: revert base-service deprecated methods
This commit is contained in:
parent
a33c9f2510
commit
32f3dc8271
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user