feat-pipelines #1

Merged
Ivan merged 25 commits from feat-pipelines into master 2021-03-24 20:50:41 +08:00
Showing only changes of commit e908d2981d - Show all commits

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