forked from noxious/server
aids
This commit is contained in:
@ -55,8 +55,7 @@ export class Server
|
||||
await api.addAuthRoutes(this.app);
|
||||
|
||||
// Load zone manager
|
||||
const zoneManager = ZoneManager.getInstance();
|
||||
await zoneManager.boot();
|
||||
await ZoneManager.boot();
|
||||
|
||||
// Listen for socket connections
|
||||
this.io.on('connection', this.handleConnection.bind(this));
|
||||
@ -68,7 +67,7 @@ export class Server
|
||||
* @private
|
||||
*/
|
||||
private async handleConnection(socket: Socket) {
|
||||
const eventsPath = path.join(__dirname, 'events');
|
||||
const eventsPath = path.join(__dirname, 'app', 'events');
|
||||
try {
|
||||
const files: string[] = await fs.promises.readdir(eventsPath);
|
||||
for (const file of files) {
|
||||
|
Reference in New Issue
Block a user