修复param类型

This commit is contained in:
whyour
2022-01-06 22:59:29 +08:00
parent 5d19ee0ab5
commit 233081149b
5 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ export default class DependenceService {
return docs[0];
}
public async remove(ids: string[]) {
public async remove(ids: number[]) {
const [, docs] = await DependenceModel.update(
{ status: DependenceStatus.removing, log: [] },
{ where: { id: ids } },
@@ -100,7 +100,7 @@ export default class DependenceService {
}
}
public async reInstall(ids: string[]): Promise<Dependence[]> {
public async reInstall(ids: number[]): Promise<Dependence[]> {
const [, docs] = await DependenceModel.update(
{ status: DependenceStatus.installing, log: [] },
{ where: { id: ids } },
@@ -114,7 +114,7 @@ export default class DependenceService {
return docs;
}
public async get(id: string): Promise<Dependence> {
public async get(id: number): Promise<Dependence> {
const docs = await DependenceModel.findAll({ where: { id } });
return docs[0];
}