perf: 优化pipeline删除时,删除其他history

This commit is contained in:
xiaojunnuo
2024-08-05 12:57:13 +08:00
parent f78ae93eed
commit b4252033d5
4 changed files with 25 additions and 0 deletions
@@ -198,6 +198,8 @@ export class PipelineService extends BaseService<PipelineEntity> {
// const storage = new DbStorage(pipeline.userId, this.storageService);
// await storage.remove(pipeline.id);
await super.delete([id]);
await this.historyService.deleteByPipelineId(id);
await this.historyLogService.deleteByPipelineId(id);
}
async clearTriggers(id: number) {