mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-09 05:18:47 +00:00
Return NotFound when getting null from FindBestRoom
This commit is contained in:
parent
00e3d2013a
commit
92ffcf3c41
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
||||||
{
|
{
|
||||||
FindBestRoomResponse? response = RoomHelper.FindBestRoom(user, token.UserLocation);
|
FindBestRoomResponse? response = RoomHelper.FindBestRoom(user, token.UserLocation);
|
||||||
|
|
||||||
if (response == null) return this.BadRequest();
|
if (response == null) return this.NotFound();
|
||||||
|
|
||||||
string serialized = JsonSerializer.Serialize(response, typeof(FindBestRoomResponse));
|
string serialized = JsonSerializer.Serialize(response, typeof(FindBestRoomResponse));
|
||||||
foreach (Player player in response.Players)
|
foreach (Player player in response.Players)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue