non-destructively comment out duplicated logic for playcounts (may still be necessary for LBP1)

This commit is contained in:
LumaLivy 2021-11-08 05:14:53 -05:00
commit 26d1bf7b85
2 changed files with 4 additions and 4 deletions

View file

@ -22,13 +22,13 @@ namespace LBPUnion.ProjectLighthouse.Controllers
[HttpGet("enterLevel/{id:int}")] [HttpGet("enterLevel/{id:int}")]
public async Task<IActionResult> EnterLevel(int id) public async Task<IActionResult> 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(); if (slot == null) return this.NotFound();
slot.Plays++; slot.Plays++;
await this.database.SaveChangesAsync(); await this.database.SaveChangesAsync();
*/
return this.Ok(); return this.Ok();
} }
} }

View file

@ -61,7 +61,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
#endregion #endregion
#region Process match data #region Process match data
/*
if (matchData is CreateRoom createRoom) if (matchData is CreateRoom createRoom)
{ {
if (createRoom.Slots.Count == 0) return this.BadRequest(); if (createRoom.Slots.Count == 0) return this.BadRequest();
@ -79,7 +79,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers
await this.database.SaveChangesAsync(); await this.database.SaveChangesAsync();
} }
} }
*/
#endregion #endregion
#region Update LastMatch #region Update LastMatch