mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 21:04:15 +00:00
fix: update skip default values
This commit is contained in:
parent
3acdbed037
commit
da783c0ef8
@ -362,11 +362,11 @@ export abstract class BaseRepository<
|
||||
}
|
||||
|
||||
protected findAllQuery(sort?: QuerySortDto<T>) {
|
||||
return this.findQuery({}, { limit: 0, skip: undefined, sort });
|
||||
return this.findQuery({}, { limit: 0, skip: 0, sort });
|
||||
}
|
||||
|
||||
async findAll(sort?: QuerySortDto<T>) {
|
||||
return await this.find({}, { limit: 0, skip: undefined, sort });
|
||||
return await this.find({}, { limit: 0, skip: 0, sort });
|
||||
}
|
||||
|
||||
async findAllAndPopulate(sort?: QuerySortDto<T>) {
|
||||
|
Loading…
Reference in New Issue
Block a user