mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 18:18:52 +08:00
服务重启时依赖改为单独安装,避免同时失败
This commit is contained in:
1 parent
62fca3dfe2
commit
22bb785139
1 file changed
+4
-1
@@ -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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user