add playercount param to heartbeat
This commit is contained in:
parent
7aa765ed13
commit
dd7243a1ca
|
@ -118,4 +118,5 @@ dist
|
|||
.pnp.*
|
||||
|
||||
# db files
|
||||
.db
|
||||
.db
|
||||
playerdata.db
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue