Update to support rejection on already existent lobby

This commit is contained in:
James Quinley 2023-06-23 21:29:12 -07:00
parent 979d472cb7
commit b0999f6c78

View File

@ -175,14 +175,15 @@ app.get("/lobby/submit/", async (request, response) => {
res = null;
} else {
responseEnabled = false;
ar = null;
res = null;
if (res.type == 4 && res.lobbyPosted == false)
response.status(403).json({
Info: "Forbidden",
Message: "Something went wrong.",
POSTSTATE : false
Message: res.info,
POSTSTATE : res.lobbyPosted
});
}
res = null;
ar = null;
}
}
});