Skip to content

Commit 90e112b

Browse files
committed
ACP2E-894: add new argument to filter customer orders based on scope level
1 parent 5e5e5f4 commit 90e112b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function resolve(
128128
* @param array $args
129129
* @param int $userId
130130
* @param int $storeId
131-
* @param array $scope
131+
* @param array $storeIds
132132
* @return OrderSearchResultInterface
133133
* @throws InputException
134134
*/
@@ -148,9 +148,9 @@ private function getSearchResult(array $args, int $userId, int $storeId, array $
148148
/**
149149
* @param string $scope
150150
* @param StoreInterface $store
151-
* @return void
151+
* @return array
152152
*/
153-
private function getStoresByScope(string $scope, StoreInterface $store)
153+
private function getStoresByScope(string $scope, StoreInterface $store): array
154154
{
155155
$storeIds = [];
156156
switch ($scope) {

app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query/OrderFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function __construct(
6262
* @param array $args
6363
* @param int $userId
6464
* @param int $storeId
65+
* @param array $storeIds
6566
* @return FilterGroup[]
6667
* @throws InputException
6768
*/

0 commit comments

Comments
 (0)