Fix reviews not being excluded by level id (#254)

This commit is contained in:
Josh 2022-03-28 11:52:07 -05:00 committed by GitHub
commit f2833e0883
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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