forked from scandipwa/sales-graphql
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See scandipwa/scandipwa#4896 Fixed the issue when downloadable produc…
…t with changed sku crashed the order page
- Loading branch information
1 parent
5004e6a
commit d11cf7f
Showing
2 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* ScandiPWA - Progressive Web App for Magento | ||
* | ||
* Copyright © Scandiweb, Inc. All rights reserved. | ||
* See LICENSE for license details. | ||
* | ||
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0) | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace ScandiPWA\SalesGraphQl\Model; | ||
|
||
use Magento\Downloadable\Model\LinkRepository as SourceLinkRepository; | ||
|
||
class LinkRepository extends SourceLinkRepository { | ||
public function getListById(int $id): array | ||
{ | ||
/** @var \Magento\Catalog\Model\Product $product */ | ||
$product = $this->productRepository->getById($id); | ||
return $this->getLinksByProduct($product); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters