fix yd delivery address update api

This commit is contained in:
omair saleh
2022-01-27 13:32:19 +08:00
parent efdc235502
commit 5c86e7fda0
@@ -73,7 +73,7 @@ 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);
dd($packingList->reference);
$appointee === 2 ? $this->updateDoFromVTPortalProcessor->execute($address) : $this->updateDoFromYDPortalProcessor->execute($address);
return $this->resourceResponse(new PackingListResource($packing_list));