系统启动安装依赖优先安装linux依赖

This commit is contained in:
whyour 2022-05-29 11:35:31 +08:00
parent 32ca72133a
commit 4200d5e530

View File

@ -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');
for (const key in groups) {
if (Object.prototype.hasOwnProperty.call(groups, key)) {