mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
修复param类型
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user