core: allow run script via cli

This commit is contained in:
undefined committed 2021-04-12 23:02:53 +08:00
1 parent 260261fcfe
commit a2edf18737
6 files changed
+36 -39

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ export async function runConfig() {
}
const config = await coll.find().toArray();
for (const i of config) cache[i._id] = i.value;
bus.emit('database/config');
await bus.emit('database/config');
}
bus.on('system/setting', (args) => {