修复初始化任务执行

This commit is contained in:
hanhh 2021-06-10 10:28:48 +08:00
parent f068cd6a46
commit 61963d5f5d

View File

@ -70,8 +70,10 @@ export default async () => {
.exec((err, docs) => { .exec((err, docs) => {
for (let i = 0; i < docs.length; i++) { for (let i = 0; i < docs.length; i++) {
const doc = docs[i]; const doc = docs[i];
if (doc && doc.isDisabled !== 1) {
exec(doc.command); exec(doc.command);
} }
}
}); });
// patch 禁用状态字段改变 // patch 禁用状态字段改变