From 0d3d8efd9bc944520beb03b36ea5c7aedeb0f99a Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Tue, 30 Jul 2019 16:07:18 +0200 Subject: [PATCH] fix(elasticsearch-plugin): Remove references to Decode decorator --- .../src/elasticsearch-resolver.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/elasticsearch-plugin/src/elasticsearch-resolver.ts b/packages/elasticsearch-plugin/src/elasticsearch-resolver.ts index 6b3ed0f059..4cba143b7e 100644 --- a/packages/elasticsearch-plugin/src/elasticsearch-resolver.ts +++ b/packages/elasticsearch-plugin/src/elasticsearch-resolver.ts @@ -1,18 +1,22 @@ import { Args, Mutation, Parent, Query, ResolveProperty, Resolver } from '@nestjs/graphql'; -import { JobInfo, Permission, QuerySearchArgs, SearchInput, SearchResponse } from '@vendure/common/lib/generated-types'; +import { + JobInfo, + Permission, + QuerySearchArgs, + SearchInput, + SearchResponse, +} from '@vendure/common/lib/generated-types'; import { Omit } from '@vendure/common/lib/omit'; -import { Allow, Ctx, Decode, FacetValue, RequestContext, SearchResolver } from '@vendure/core'; +import { Allow, Ctx, FacetValue, RequestContext, SearchResolver } from '@vendure/core'; import { ElasticsearchService } from './elasticsearch.service'; @Resolver('SearchResponse') export class ShopElasticSearchResolver implements Omit { - constructor(private elasticsearchService: ElasticsearchService) {} @Query() @Allow(Permission.Public) - @Decode('facetValueIds', 'collectionId') async search( @Ctx() ctx: RequestContext, @Args() args: QuerySearchArgs, @@ -34,12 +38,10 @@ export class ShopElasticSearchResolver implements Omit { return this.elasticsearchService.reindex(ctx); - } }