Skip to content

Commit

Permalink
Merge pull request #26 from lsst-epo/EPO-7728
Browse files Browse the repository at this point in the history
Fixed deprecation warning in GQL interface class
  • Loading branch information
ericdrosas87 authored Mar 27, 2023
2 parents e8ee05e + d7eb7c8 commit 09105b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gql/interfaces/DAMAssetInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Craft;
use GraphQL\Type\Definition\Type;
use craft\gql\interfaces\elements\Asset as AssetInterface;
use craft\gql\TypeManager;
use craft\gql\GqlEntityRegistry;
use craft\services\Gql;
use GraphQL\Type\Definition\InterfaceType;
use lsst\dam\gql\types\generators\DAMAssetGenerator;
use lsst\dam\models\Metadata;
Expand Down Expand Up @@ -60,7 +60,7 @@ public static function getName(): string
*/
public static function getFieldDefinitions(): array
{
return TypeManager::prepareFieldDefinitions(array_merge(parent::getFieldDefinitions(), self::getConditionalFields(), [
return Gql::prepareFieldDefinitions(array_merge(parent::getFieldDefinitions(), self::getConditionalFields(), [
'dam_meta_key' => [
'name' => 'dam_meta_key',
'type' => Type::string(),
Expand Down

0 comments on commit 09105b3

Please sign in to comment.