Skip to content

Commit

Permalink
GraphQL-202: Products: Email to a Friend
Browse files Browse the repository at this point in the history
-- fix static tests
  • Loading branch information
Valeriy Nayda committed Nov 19, 2018
1 parent a653c2b commit 0bdc2fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
$sendFriend = $this->sendFriendFactory->create();

if ($sendFriend->getMaxSendsToFriend() && $sendFriend->isExceedLimit()) {
throw new GraphQlInputException(__('You can\'t send messages more than %1 times an hour.',
throw new GraphQlInputException(
__('You can\'t send messages more than %1 times an hour.',
$sendFriend->getMaxSendsToFriend()
));
}
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/SendFriendGraphQl/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

use Magento\Framework\Component\ComponentRegistrar;

Expand Down

0 comments on commit 0bdc2fd

Please sign in to comment.