fix yd delivery address update api

This commit is contained in:
omair saleh
2022-01-27 15:08:30 +08:00
parent 33277d080a
commit 199a18e8dd
@@ -73,7 +73,6 @@ class UpdatePackingListStatusLogic extends AbstractControllerLogic
$address = $packing_list->owner()->first()->addresses()->first();
$appointee = $address->owner->orderRoles()->where('role_id', '=', OrderRoleTypes::ORIGIN_FREIGHT_FORWARDER)->first()->appointee->id;
dd($appointee);
$appointee === 2 ? $this->updateDoFromVTPortalProcessor->execute($address) : $this->updateDoFromYDPortalProcessor->execute($address);
return $this->resourceResponse(new PackingListResource($packing_list));