Skip to content

Commit

Permalink
That code was wrong in this scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
nexus4880 committed Jan 26, 2025
1 parent 0ee391c commit 46f94c4
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ public override Task RunAsync(EftHttpContext context, RagfairFindRequest body)
{
selectedOffers = SearchByItem(handbook, body.HandbookId.Value);
selectedCategory = body.HandbookId;

var count = 0;

if (_ragfairService.CategoricalOffers.ContainsKey(body.HandbookId.Value))
{
count = _ragfairService.CategoricalOffers[body.HandbookId.Value];
}

categories = new Dictionary<MongoId, int>()
{
{ body.HandbookId.Value, count }
};
}
else if (body.LinkedSearchId.HasValue)
{
Expand Down

0 comments on commit 46f94c4

Please sign in to comment.