mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 08:28:39 +00:00
Fix reviews not being excluded by level id (#254)
This commit is contained in:
parent
a799505c78
commit
f2833e0883
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ public class ReviewController : ControllerBase
|
|||
if (slot == null) return this.BadRequest();
|
||||
|
||||
IQueryable<Review?> reviews = this.database.Reviews.ByGameVersion(gameVersion, true)
|
||||
.Where(r => r.SlotId == slotId)
|
||||
.Include(r => r.Reviewer)
|
||||
.Include(r => r.Slot)
|
||||
.OrderByDescending(r => r.ThumbsUp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue