yet yet another attempt
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user