@@ -218,7 +218,7 @@ class ReturnService {
|
|||||||
//#######################################################
|
//#######################################################
|
||||||
//#######################################################
|
//#######################################################
|
||||||
async getReturnReasons() {
|
async getReturnReasons() {
|
||||||
const reasons = await this.returnReasonRep.findAll();
|
const reasons = await this.returnReasonRep.model.find().populate({ path: "fineRule" }).sort({ createdAt: -1 });
|
||||||
return { reasons };
|
return { reasons };
|
||||||
}
|
}
|
||||||
//#######################################################
|
//#######################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user