mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 00:14:00 +00:00
feat(multiplayer): refresh allocator ready servers
This commit is contained in:
@@ -16,7 +16,8 @@ const RegisterReadyServerSQL = `INSERT INTO game_servers
|
||||
VALUES ($1, $2, $3, $4, $5, 'READY', $6)
|
||||
ON CONFLICT (server_id) DO UPDATE SET region = EXCLUDED.region,
|
||||
build = EXCLUDED.build, protocol_version = EXCLUDED.protocol_version,
|
||||
transport = EXCLUDED.transport, state = 'READY', updated_at = EXCLUDED.updated_at`
|
||||
transport = EXCLUDED.transport, updated_at = EXCLUDED.updated_at
|
||||
WHERE game_servers.state = 'READY'`
|
||||
|
||||
const ClaimReadyServerSQL = `UPDATE game_servers SET state = 'ALLOCATED', updated_at = $5
|
||||
WHERE server_id = (
|
||||
|
||||
Reference in New Issue
Block a user