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;
|
res = null;
|
||||||
} else {
|
} else {
|
||||||
responseEnabled = false;
|
responseEnabled = false;
|
||||||
ar = null;
|
if (res.type == 4 && res.lobbyPosted == false)
|
||||||
res = null;
|
|
||||||
response.status(403).json({
|
response.status(403).json({
|
||||||
Info: "Forbidden",
|
Info: "Forbidden",
|
||||||
Message: "Something went wrong.",
|
Message: res.info,
|
||||||
POSTSTATE : false
|
POSTSTATE : res.lobbyPosted
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
res = null;
|
||||||
|
ar = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user