Skip to content

Commit

Permalink
Merge pull request #97 from zans-laksa/parent-constructor-fix
Browse files Browse the repository at this point in the history
Parent Constructor Call Fix
  • Loading branch information
carinadues authored May 26, 2022
2 parents 4aa784b + 6d55f76 commit e6f2df4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Model/Resolver/OrderListResolver.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* ScandiPWA - Progressive Web App for Magento
*
Expand Down Expand Up @@ -55,8 +56,6 @@ public function __construct(
$this->collectionFactory = $collectionFactory;
$this->checkCustomerAccount = $checkCustomerAccount;
$this->customerRepository = $customerRepository;

parent::__construct($collectionFactory, $checkCustomerAccount);
}

/**
Expand All @@ -79,8 +78,8 @@ public function resolve(

$ordersCollection = $this->collectionFactory->create();
$ordersCollection->addFieldToFilter(
['customer_id','customer_email'],
[['eq' => $customerId],['eq'=>$customer->getEmail()]]
['customer_id', 'customer_email'],
[['eq' => $customerId], ['eq' => $customer->getEmail()]]
);
$orders = $ordersCollection->load();

Expand Down

0 comments on commit e6f2df4

Please sign in to comment.