mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
系统启动安装依赖优先安装linux依赖
This commit is contained in:
parent
32ca72133a
commit
4200d5e530
|
@ -21,7 +21,11 @@ export default async () => {
|
||||||
);
|
);
|
||||||
|
|
||||||
// 初始化时安装所有处于安装中,安装成功,安装失败的依赖
|
// 初始化时安装所有处于安装中,安装成功,安装失败的依赖
|
||||||
DependenceModel.findAll({ where: {}, raw: true }).then(async (docs) => {
|
DependenceModel.findAll({
|
||||||
|
where: {},
|
||||||
|
order: [['type', 'DESC']],
|
||||||
|
raw: true,
|
||||||
|
}).then(async (docs) => {
|
||||||
const groups = _.groupBy(docs, 'type');
|
const groups = _.groupBy(docs, 'type');
|
||||||
for (const key in groups) {
|
for (const key in groups) {
|
||||||
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
if (Object.prototype.hasOwnProperty.call(groups, key)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user