Return NotFound when getting null from FindBestRoom

This commit is contained in:
jvyden 2021-11-16 17:05:23 -05:00
commit 92ffcf3c41
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -110,7 +110,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
{
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));
foreach (Player player in response.Players)