chore: off cron when remove

This commit is contained in:
xiaojunnuo
2023-06-28 12:46:29 +08:00
parent f04e497999
commit 301f6cc273
2 changed files with 21 additions and 1 deletions

View File

@@ -60,7 +60,8 @@ export class PipelineController extends CrudController<PipelineService> {
@Post('/delete', { summary: Constants.per.authOnly })
async delete(@Query('id') id) {
await this.service.checkUserId(id, this.ctx.user.id);
return super.delete(id);
await this.service.delete(id);
return this.ok({});
}
@Post('/detail', { summary: Constants.per.authOnly })