依赖增加已取消状态

This commit is contained in:
whyour
2024-02-14 21:54:53 +08:00
parent c47896e787
commit 6dba8ae72d
6 changed files with 29 additions and 8 deletions
+4 -1
View File
@@ -165,7 +165,10 @@ export default class DependenceService {
pid && (await killTask(pid));
}
}
await this.removeDb(ids);
await DependenceModel.update(
{ status: DependenceStatus.cancelled },
{ where: { id: ids } },
);
}
private async find(query: any, sort: any = []): Promise<Dependence[]> {