fix : base repository
This commit is contained in:
@@ -12,7 +12,7 @@ abstract class BaseRepository<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async findAll() {
|
async findAll() {
|
||||||
return this.model.find().populate({ path: "fineRule" }).sort({ createdAt: -1 });
|
return this.model.find().sort({ createdAt: -1 });
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(id: string) {
|
async delete(id: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user