mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 18:18:39 +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}")]
|
[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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue