mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
服务重启时依赖改为单独安装,避免同时失败
This commit is contained in:
parent
8d99f3ffbb
commit
c87f5fa004
|
@ -27,7 +27,10 @@ export default async () => {
|
||||||
for (const key in groups) {
|
for (const key in groups) {
|
||||||
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
||||||
const group = groups[key];
|
const group = groups[key];
|
||||||
dependenceService.reInstall(group.map((x) => x._id));
|
const depIds = group.map((x) => x._id);
|
||||||
|
for (const dep of depIds) {
|
||||||
|
dependenceService.reInstall([dep]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user