mirror of
https://github.com/DeNNiiInc/Connect-5.git
synced 2026-10-13 01:01:28 +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
|
// Broadcast updated player list
|
||||||
await this.broadcastActivePlayers();
|
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
|
activeGame: null // Will be populated if they are reconnecting
|
||||||
|
|||||||
Reference in new issue
Block a user