fix : admin shipment route
This commit is contained in:
@@ -67,7 +67,7 @@ export class AdminShipmentController extends BaseController {
|
||||
@ApiOperation("activate the admin shop shipment method")
|
||||
@ApiModel(UpdateShopShipmentDTO)
|
||||
@ApiAuth()
|
||||
@httpPatch("/shipment/activate", Guard.authAdmin(), ValidationMiddleware.validateInput(UpdateShopShipmentDTO))
|
||||
@httpPatch("/activate", Guard.authAdmin(), ValidationMiddleware.validateInput(UpdateShopShipmentDTO))
|
||||
public async activateShopShipper(@request() req: Request, @requestBody() updateDto: UpdateShopShipmentDTO) {
|
||||
const admin = req.user as IAdmin;
|
||||
const data = await this.sellerService.updateShopShipperForAdmin(admin._id.toString(), updateDto, "activate");
|
||||
@@ -77,7 +77,7 @@ export class AdminShipmentController extends BaseController {
|
||||
@ApiOperation("deactivate the admin shop shipment method")
|
||||
@ApiModel(UpdateShopShipmentDTO)
|
||||
@ApiAuth()
|
||||
@httpPatch("/shipment/deactivate", Guard.authAdmin(), ValidationMiddleware.validateInput(UpdateShopShipmentDTO))
|
||||
@httpPatch("/deactivate", Guard.authAdmin(), ValidationMiddleware.validateInput(UpdateShopShipmentDTO))
|
||||
public async deactivateShopShipper(@request() req: Request, @requestBody() updateDto: UpdateShopShipmentDTO) {
|
||||
const admin = req.user as IAdmin;
|
||||
const data = await this.sellerService.updateShopShipperForAdmin(admin._id.toString(), updateDto, "deactivate");
|
||||
|
||||
Reference in New Issue
Block a user