mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
non-destructively comment out duplicated logic for playcounts (may still be necessary for LBP1)
This commit is contained in:
parent
6b35545286
commit
26d1bf7b85
2 changed files with 4 additions and 4 deletions
|
@ -22,13 +22,13 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
[HttpGet("enterLevel/{id:int}")]
|
||||
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();
|
||||
|
||||
slot.Plays++;
|
||||
|
||||
await this.database.SaveChangesAsync();
|
||||
|
||||
*/
|
||||
return this.Ok();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue