GASD
This commit is contained in:
parent
0ce24300d7
commit
606ff96fd2
|
|
@ -11,8 +11,8 @@ router.post('/', global.auth, async (req, res) => {
|
||||||
console.log(`Recording startup: ${serverId} at ${serverStartTime} for place ${placeId} rev ${revision}`);
|
console.log(`Recording startup: ${serverId} at ${serverStartTime} for place ${placeId} rev ${revision}`);
|
||||||
const firstHeartbeat = Date.now() + ((parseInt(process.env.MAX_HEARTBEAT, 10) || 60) * 1000);
|
const firstHeartbeat = Date.now() + ((parseInt(process.env.MAX_HEARTBEAT, 10) || 60) * 1000);
|
||||||
db.run(
|
db.run(
|
||||||
'INSERT INTO analytics (id, placeId, revision, startupTime, heartbeatCheck) VALUES (?, ?, ?, ?, ?)',
|
'INSERT INTO analytics (id, placeId, revision, startupTime, heartbeatCheck, allPlayers) VALUES (?, ?, ?, ?, ?, ?)',
|
||||||
[serverId, placeId, revision, serverStartTime, firstHeartbeat / 1000],
|
[serverId, placeId, revision, serverStartTime, firstHeartbeat / 1000, JSON.stringify({})],
|
||||||
function(err) {
|
function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error('Failed to record startup data', err);
|
console.error('Failed to record startup data', err);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue