chore: check before

This commit is contained in:
xiaojunnuo
2025-10-23 00:36:20 +08:00
parent 1505d04622
commit d8935b46b3
5 changed files with 41 additions and 23 deletions
@@ -101,7 +101,7 @@ export class PipelineController extends CrudController<PipelineService> {
@Post('/trigger', { summary: Constants.per.authOnly })
async trigger(@Query('id') id: number, @Query('stepId') stepId?: string) {
await this.authService.checkEntityUserId(this.ctx, this.getService(), id);
await this.service.trigger(id, stepId);
await this.service.trigger(id, stepId,true);
return this.ok({});
}