修复初始化任务执行

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

View File

@ -70,7 +70,9 @@ export default async () => {
.exec((err, docs) => {
for (let i = 0; i < docs.length; i++) {
const doc = docs[i];
exec(doc.command);
if (doc && doc.isDisabled !== 1) {
exec(doc.command);
}
}
});