Skip to content

Commit

Permalink
金額をIntにする
Browse files Browse the repository at this point in the history
  • Loading branch information
kiy0taka committed Jul 30, 2020
1 parent e08c647 commit 97e4c29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GraphQL/Query/SearchFormQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
namespace Plugin\Api\GraphQL\Query;

use Eccube\Common\EccubeConfig;
use Eccube\Form\Type\PriceType;
use Eccube\Util\StringUtil;
use GraphQL\Type\Definition\Type;
use Knp\Component\Pager\Paginator;
Expand Down Expand Up @@ -94,6 +95,7 @@ protected function createQuery($entityClass, $searchFormType, $resolver)
$typeClass = get_class($formConfig->getType()->getInnerType());
switch ($typeClass) {
case IntegerType::class:
case PriceType::class:
$type = Type::int();
break;
case DateTimeType::class:
Expand Down

0 comments on commit 97e4c29

Please sign in to comment.