Manually fetch slot types instead of relying on foreign key being loaded

This commit is contained in:
Slendy 2024-05-13 21:53:52 -05:00
commit cd0c85308a
No known key found for this signature in database
GPG key ID: 7288D68361B91428
2 changed files with 20 additions and 10 deletions

View file

@ -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)