yet yet another attempt

This commit is contained in:
IM23a-cernik
2025-04-28 15:07:58 +02:00
parent 57129c37b5
commit 14d6c84972
+1 -1
View File
@@ -43,7 +43,7 @@ app.get("/lobby/join", async (req, res) => {
return res.status(401).json({error: "User doesn't exist"});
}
console.log(playerMap);
if (playerMap[lobbyId]) {
if (lobbyId in playerMap) {
await joinLobby(lobbyId, user.username);
if (!playerMap[lobbyId]) {