修复初始化任务执行

This commit is contained in:
hanhh 2021-06-10 10:28:48 +08:00
parent c7a87efb8d
commit 628dead88c

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);
}
}
});