fix : base repository

This commit is contained in:
morteza-mortezai
2025-10-12 16:45:39 +03:30
parent 0b94414d62
commit d8f533ee32
+1 -1
View File
@@ -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) {