use serverId in protocol instead of legacy info object

This commit is contained in:
Nick Krecklow
2020-04-29 04:01:10 -05:00
parent 36c3e056c2
commit be92449d52
8 changed files with 59 additions and 93 deletions

View File

@ -8,7 +8,7 @@ const servers = require('./servers')
const app = new App()
servers.forEach(server => {
servers.forEach((server, serverId) => {
// Assign a generated color for each servers.json entry if not manually defined
// These will be passed to the frontend for use in rendering
if (!server.color) {
@ -22,7 +22,7 @@ servers.forEach(server => {
}
// Init a ServerRegistration instance of each entry in servers.json
app.serverRegistrations.push(new ServerRegistration(server))
app.serverRegistrations.push(new ServerRegistration(serverId, server))
})
if (!config.logToDatabase) {