Update to support rejection on already existent lobby
This commit is contained in:
parent
979d472cb7
commit
b0999f6c78
@ -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;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user