add: ship detail
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user