feat(pipelines): 修改接口名。

findPipelines -> listPipelines.
This commit is contained in:
Ivan Li 2021-03-06 23:30:12 +08:00
parent 0dadc09ec5
commit e908d2981d

View File

@ -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);