diff --git a/MarketService/Controllers/MarketController.cs b/MarketService/Controllers/MarketController.cs index c177a5b..9c3d385 100644 --- a/MarketService/Controllers/MarketController.cs +++ b/MarketService/Controllers/MarketController.cs @@ -47,7 +47,7 @@ public async Task GetItemProducts(int type, int? limit, i } private async Task> Get(ItemSubType itemSubType, int queryLimit, int queryOffset, - string sort, StatType statType, int[] iconIds) + string sort, StatType statType, int[] iconIds, bool isCustom = false) { var ids = string.Join("_", iconIds.OrderBy(i => i)); var cacheKey = $"{itemSubType}_{queryLimit}_{queryOffset}_{sort}_{statType}_{ids}"; @@ -68,6 +68,11 @@ private async Task> Get(ItemSubType itemSubType, int quer query = query.Where(p => iconIds.Contains(p.IconId)); } + if (isCustom) + { + query = query.Where(p => p.ByCustomCraft); + } + query = query.AsSingleQuery(); query = sort switch {