mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-10-05 07:39:39 +00:00
Manually fetch slot types instead of relying on foreign key being loaded
This commit is contained in:
parent
1820425038
commit
cd0c85308a
2 changed files with 20 additions and 10 deletions
|
@ -132,7 +132,6 @@ public class ScoreController : ControllerBase
|
|||
await this.database.SaveChangesAsync();
|
||||
|
||||
ScoreEntity? existingScore = await this.database.Scores
|
||||
.Include(s => s.Slot)
|
||||
.Where(s => s.SlotId == slot.SlotId)
|
||||
.Where(s => s.ChildSlotId == 0 || s.ChildSlotId == childId)
|
||||
.Where(s => s.UserId == token.UserId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue