Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Model/Resolver/Customer/SendMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function resolve(
array $value = null,
array $args = null
) {

if (!$context->getExtensionAttributes()->getIsCustomer()) {
throw new GraphQlAuthorizationException(__('The current customer isn\'t authorized.'));
}
Expand Down
5 changes: 3 additions & 2 deletions Model/Resolver/ProductBySellerUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,14 @@ public function resolve(
__("'seller_url' input argument is required.")
);
}

$seller = $this->getSellerByUrl($args['seller_url']);
if (!$seller || ($seller && !$seller->getId())) {
if (!$seller || ($seller && !$seller->getData("seller_id"))) {
throw new GraphQlInputException(
__("Seller %1 is not exists.", $args['seller_url'])
);
}
$args['seller_id'] = $seller->getId();
$args['seller_id'] = $seller->getSellerId();
$searchResult = $this->searchQuery->getResult($args, $info, $context);

if ($searchResult->getCurrentPage() > $searchResult->getTotalPages() && $searchResult->getTotalCount() > 0) {
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,8 @@ mutation {
content : String!
}
) {
message_id
code
message
}
}
```
Expand All @@ -572,7 +573,8 @@ mutation {
content : String!
}
) {
created_at
code
message
}
}
```
Expand Down