mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-28 17:04:18 +00:00
fix dashboard and order ui & fix address select component and added reference to addresses
This commit is contained in:
@@ -22,7 +22,8 @@ class CreateOrderAddressProcessor
|
||||
/**
|
||||
* CreateAddressProcessor constructor.
|
||||
* @param CanCreateAddress $canCreateAddress
|
||||
* @param CreatesAddress $CreatesAddress
|
||||
* @param CreatesOrderAddress $createsOrderAddress
|
||||
* @param FetchesAddress $fetchesAddress
|
||||
*/
|
||||
public function __construct(CanCreateAddress $canCreateAddress, CreatesOrderAddress $createsOrderAddress, FetchesAddress $fetchesAddress)
|
||||
{
|
||||
@@ -38,9 +39,9 @@ class CreateOrderAddressProcessor
|
||||
* @throws \App\Classes\Exceptions\MalformedRequestException
|
||||
* @throws \App\Classes\Exceptions\RequestValidationException
|
||||
*/
|
||||
public function execute(int $address_id, Order $order): Model {
|
||||
public function execute(int $address, Order $order): Model {
|
||||
|
||||
$address = $this->fetchesAddress->getRepository()->whereIn('id',[$address_id])->first();
|
||||
$address = $this->fetchesAddress->execute(['id' => $address_id]);
|
||||
|
||||
|
||||
// $this->canCreateAddress->passes($object);
|
||||
|
||||
Reference in New Issue
Block a user