fix: reason rule populate

This commit is contained in:
morteza-mortezai
2025-10-08 12:10:36 +03:30
parent 4899700bf9
commit 906e488b14
+1 -1
View File
@@ -12,7 +12,7 @@ abstract class BaseRepository<T> {
}
async findAll() {
return this.model.find().sort({ createdAt: -1 });
return this.model.find().populate({ path: "fineRule" }).sort({ createdAt: -1 });
}
async delete(id: string) {