mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-13 13:22:28 +00:00
Make childId not nullable in SubmitScore
This commit is contained in:
parent
a6c17b0e16
commit
b26d96bacd
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ public class ScoreController : ControllerBase
|
||||||
|
|
||||||
[HttpPost("scoreboard/{slotType}/{id:int}")]
|
[HttpPost("scoreboard/{slotType}/{id:int}")]
|
||||||
[HttpPost("scoreboard/{slotType}/{id:int}/{childId:int}")]
|
[HttpPost("scoreboard/{slotType}/{id:int}/{childId:int}")]
|
||||||
public async Task<IActionResult> SubmitScore(string slotType, int id, int? childId, [FromQuery] bool lbp1 = false, [FromQuery] bool lbp2 = false, [FromQuery] bool lbp3 = false)
|
public async Task<IActionResult> SubmitScore(string slotType, int id, int childId, [FromQuery] bool lbp1 = false, [FromQuery] bool lbp2 = false, [FromQuery] bool lbp3 = false)
|
||||||
{
|
{
|
||||||
GameToken? token = await this.database.GameTokenFromRequest(this.Request);
|
GameToken? token = await this.database.GameTokenFromRequest(this.Request);
|
||||||
if (token == null) return this.StatusCode(403, "");
|
if (token == null) return this.StatusCode(403, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue