From 26d1bf7b8574949bfe7c9bd4386523178c9973d7 Mon Sep 17 00:00:00 2001 From: LumaLivy Date: Mon, 8 Nov 2021 05:14:53 -0500 Subject: [PATCH] non-destructively comment out duplicated logic for playcounts (may still be necessary for LBP1) --- ProjectLighthouse/Controllers/EnterLevelController.cs | 4 ++-- ProjectLighthouse/Controllers/MatchController.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse/Controllers/EnterLevelController.cs b/ProjectLighthouse/Controllers/EnterLevelController.cs index 1c783cef..d3a22774 100644 --- a/ProjectLighthouse/Controllers/EnterLevelController.cs +++ b/ProjectLighthouse/Controllers/EnterLevelController.cs @@ -22,13 +22,13 @@ namespace LBPUnion.ProjectLighthouse.Controllers [HttpGet("enterLevel/{id:int}")] public async Task EnterLevel(int id) { - Slot? slot = await this.database.Slots.FirstOrDefaultAsync(s => s.SlotId == id); + /*Slot? slot = await this.database.Slots.FirstOrDefaultAsync(s => s.SlotId == id); if (slot == null) return this.NotFound(); slot.Plays++; await this.database.SaveChangesAsync(); - + */ return this.Ok(); } } diff --git a/ProjectLighthouse/Controllers/MatchController.cs b/ProjectLighthouse/Controllers/MatchController.cs index 73ec3bbb..e69f6311 100644 --- a/ProjectLighthouse/Controllers/MatchController.cs +++ b/ProjectLighthouse/Controllers/MatchController.cs @@ -61,7 +61,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers #endregion #region Process match data - + /* if (matchData is CreateRoom createRoom) { if (createRoom.Slots.Count == 0) return this.BadRequest(); @@ -79,7 +79,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers await this.database.SaveChangesAsync(); } } - + */ #endregion #region Update LastMatch