mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-10-12 16:51:29 +11:00
Fix: syntax error in registerPlayer
This commit is contained in:
1 parent
69dc70ee06
commit
d0f72f01c8
1 file changed
+9
-1
+9
-1
@@ -59,7 +59,15 @@ class GameManager {
|
||||
// Broadcast updated player list
|
||||
await this.broadcastActivePlayers();
|
||||
|
||||
return {
|
||||
const response = {
|
||||
success: true,
|
||||
player: {
|
||||
id: playerId,
|
||||
username: username,
|
||||
stats: {
|
||||
wins: player.total_wins,
|
||||
losses: player.total_losses,
|
||||
draws: player.total_draws
|
||||
}
|
||||
},
|
||||
activeGame: null // Will be populated if they are reconnecting
|
||||
|
||||
Reference in new issue
Block a user