mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +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();
|
if (slot == null) return this.BadRequest();
|
||||||
|
|
||||||
IQueryable<Review?> reviews = this.database.Reviews.ByGameVersion(gameVersion, true)
|
IQueryable<Review?> reviews = this.database.Reviews.ByGameVersion(gameVersion, true)
|
||||||
|
.Where(r => r.SlotId == slotId)
|
||||||
.Include(r => r.Reviewer)
|
.Include(r => r.Reviewer)
|
||||||
.Include(r => r.Slot)
|
.Include(r => r.Slot)
|
||||||
.OrderByDescending(r => r.ThumbsUp)
|
.OrderByDescending(r => r.ThumbsUp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue