fix: 修复重启certd后,再启用流水线,不会自动执行的bug

This commit is contained in:
xiaojunnuo
2026-01-06 13:38:10 +08:00
parent 6b6668f73b
commit 468ccbf2b7
4 changed files with 42 additions and 8 deletions
@@ -129,6 +129,13 @@ export class PipelineController extends CrudController<PipelineService> {
return this.ok({});
}
@Post('/disabled', { summary: Constants.per.authOnly })
async disabled(@Body(ALL) bean) {
await this.authService.checkEntityUserId(this.ctx, this.getService(), bean.id);
delete bean.userId;
return this.service.disabled(bean.id, bean.disabled);
}
@Post('/detail', { summary: Constants.per.authOnly })
async detail(@Query('id') id: number) {
await this.authService.checkEntityUserId(this.ctx, this.getService(), id);