fix: wait for sideload locales before server start (#1248)

This commit is contained in:
NGPixel 2020-07-04 17:01:35 -04:00
parent c7631b30d7
commit 5282a82afe

View File

@ -32,10 +32,10 @@ module.exports = {
async preBootMaster() { async preBootMaster() {
try { try {
await this.initTelemetry() await this.initTelemetry()
WIKI.sideloader = await require('./sideloader').init()
WIKI.cache = require('./cache').init() WIKI.cache = require('./cache').init()
WIKI.scheduler = require('./scheduler').init() WIKI.scheduler = require('./scheduler').init()
WIKI.servers = require('./servers') WIKI.servers = require('./servers')
WIKI.sideloader = require('./sideloader').init()
WIKI.events = { WIKI.events = {
inbound: new EventEmitter(), inbound: new EventEmitter(),
outbound: new EventEmitter() outbound: new EventEmitter()