Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Mar 27, 2024
1 parent 79515e1 commit d9597c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gql/interfaces/elements/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace craft\digitalproducts\gql\interfaces\elements;

use Craft;
use craft\digitalproducts\elements\Product as ProductElement;
use craft\digitalproducts\gql\types\generators\ProductType;
use craft\gql\GqlEntityRegistry;
Expand Down Expand Up @@ -67,7 +68,7 @@ public static function getName(): string
*/
public static function getFieldDefinitions(): array
{
return TypeManager::prepareFieldDefinitions(array_merge(parent::getFieldDefinitions(), [
return Craft::$app->getGql()->prepareFieldDefinitions(array_merge(parent::getFieldDefinitions(), [
'price' => [
'name' => 'price',
'type' => Type::float(),
Expand Down

0 comments on commit d9597c7

Please sign in to comment.