From 717209c63ec20c1b9f92659db377fbe7b99f2a47 Mon Sep 17 00:00:00 2001 From: jvyden Date: Wed, 27 Oct 2021 01:35:22 -0400 Subject: [PATCH] Cleanup code --- ProjectLighthouse/Controllers/MatchController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/MatchController.cs b/ProjectLighthouse/Controllers/MatchController.cs index 61d63013..5b14bf76 100644 --- a/ProjectLighthouse/Controllers/MatchController.cs +++ b/ProjectLighthouse/Controllers/MatchController.cs @@ -32,7 +32,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers { #region Parse match data // Example POST /match: [UpdateMyPlayerData,["Player":"FireGamer9872"]] - string? bodyString = await new StreamReader(this.Request.Body).ReadToEndAsync(); + string bodyString = await new StreamReader(this.Request.Body).ReadToEndAsync(); if(bodyString.Contains("FindBestRoom")) { return this.Ok("[{\"StatusCode\":200},{\"Players\":[{\"PlayerId\":\"literally1984\",\"matching_res\":0},{\"PlayerId\":\"jvyden\",\"matching_res\":1}],\"Slots\":[[5,0]],\"RoomState\":\"E_ROOM_IN_POD\",\"HostMood\":\"E_MOOD_EVERYONE\",\"LevelCompletionEstimate\":0,\"PassedNoJoinPoint\":0,\"MoveConnected\":false,\"Location\":[\"127.0.0.1\"],\"BuildVersion\":289,\"Language\":1,\"FirstSeenTimestamp\":1427331263756,\"LastSeenTimestamp\":1635112546000,\"GameId\":1,\"NatType\":2,\"Friends\":[],\"Blocked\":[],\"RecentlyLeft\":[],\"FailedJoin\":[]}]"); }