From f2833e0883bc009b319cc58b2327dd497819f17a Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 28 Mar 2022 11:52:07 -0500 Subject: [PATCH] Fix reviews not being excluded by level id (#254) --- ProjectLighthouse/Controllers/GameApi/Slots/ReviewController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProjectLighthouse/Controllers/GameApi/Slots/ReviewController.cs b/ProjectLighthouse/Controllers/GameApi/Slots/ReviewController.cs index 11d5fc5a..161dd7a8 100644 --- a/ProjectLighthouse/Controllers/GameApi/Slots/ReviewController.cs +++ b/ProjectLighthouse/Controllers/GameApi/Slots/ReviewController.cs @@ -146,6 +146,7 @@ public class ReviewController : ControllerBase if (slot == null) return this.BadRequest(); IQueryable reviews = this.database.Reviews.ByGameVersion(gameVersion, true) + .Where(r => r.SlotId == slotId) .Include(r => r.Reviewer) .Include(r => r.Slot) .OrderByDescending(r => r.ThumbsUp)