From e908d2981d6de7af784bac2f2451b74212b4f773 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sat, 6 Mar 2021 23:30:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(pipelines):=20=E4=BF=AE=E6=94=B9=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=90=8D=E3=80=82=20=20findPipelines=20->=20listPipel?= =?UTF-8?q?ines.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pipelines/pipelines.resolver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipelines/pipelines.resolver.ts b/src/pipelines/pipelines.resolver.ts index ac80865..572e612 100644 --- a/src/pipelines/pipelines.resolver.ts +++ b/src/pipelines/pipelines.resolver.ts @@ -9,7 +9,7 @@ import { ListPipelineArgs } from './dtos/list-pipelines.args'; export class PipelinesResolver { constructor(private readonly service: PipelinesService) {} @Query(() => [Pipeline]) - async findPipelines(@Args() dto: ListPipelineArgs) { + async listPipelines(@Args() dto: ListPipelineArgs) { return await this.service.list(dto); } @@ -20,7 +20,7 @@ export class PipelinesResolver { @Mutation(() => Pipeline) async createPipeline( - @Args('Pipeline', { type: () => CreatePipelineInput }) + @Args('pipeline', { type: () => CreatePipelineInput }) dto: UpdatePipelineInput, ) { return await this.service.create(dto);