yet yet another attempt

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