add playercount param to heartbeat

This commit is contained in:
BobTheBob 2021-12-24 19:40:45 +00:00
parent 7aa765ed13
commit dd7243a1ca
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@ -118,4 +118,5 @@ dist
.pnp.*
# db files
.db
.db
playerdata.db

View File

@ -95,7 +95,8 @@ module.exports = ( fastify, opts, done ) => {
{
schema: {
querystring: {
id: { type: "string" } // the id of the server sending this message
id: { type: "string" }, // the id of the server sending this message
playerCount: { type: "integer" }
}
}
},
@ -106,6 +107,7 @@ module.exports = ( fastify, opts, done ) => {
return null
server.lastHeartbeat = Date.now()
server.playerCount = request.playerCount
return null
})