add: ship detail

This commit is contained in:
morteza-mortezai
2025-09-28 15:01:18 +03:30
parent 95933810cf
commit 4d65c928ed
2 changed files with 19 additions and 1 deletions
+8
View File
@@ -74,6 +74,14 @@ class ShipmentService {
};
}
async getShipperDetail(shipperId: number) {
const shipper = await this.shipmentRepo.model.findOne({ _id: shipperId, deleted: false });
if (!shipper) throw new BadRequestError(CommonMessage.NotFoundById);
return {
shipper,
};
}
//###################################################################
//###################################################################
async calculateAllShipmentOptions(userId: string) {