From 171958ba1ecbcd9aa490942eb7832c3ee53bf593 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 5 Sep 2024 21:23:43 -0400 Subject: [PATCH] fix scoping by product category --- .../media_files/list/list_featured_media_files_handler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/media_files/list/list_featured_media_files_handler.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/media_files/list/list_featured_media_files_handler.rs index 988e67a25f..35a40aad1f 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/media_files/list/list_featured_media_files_handler.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/media_files/list/list_featured_media_files_handler.rs @@ -376,7 +376,7 @@ async fn database_lookup( let maybe_filter_media_types = get_scoped_media_types(query.filter_media_type.as_deref()); let maybe_filter_media_classes = get_scoped_media_classes(query.filter_media_classes.as_deref()); let maybe_filter_engine_categories = get_scoped_engine_categories(query.filter_engine_categories.as_deref()); - let maybe_filter_product_categories = get_scoped_product_categories(query.filter_engine_categories.as_deref()); + let maybe_filter_product_categories = get_scoped_product_categories(query.filter_products.as_deref()); // NB: No reason to show deleted or non-public featured items to mods or authors. // That's just confusing and wastes an extra query.