search in admin also

This commit is contained in:
Priec
2026-06-22 21:38:03 +02:00
parent 1e66bfd657
commit 5a474f3474
7 changed files with 80 additions and 28 deletions

View File

@@ -102,7 +102,7 @@ async fn run_search(
.all(&ctx.db)
.await?
} else {
products::Entity::search(&ctx.db, &q_trim, SEARCH_CAP).await?
products::Entity::search(&ctx.db, &q_trim, SEARCH_CAP, true).await?
};
// 2. Attach representative variant + resolved price to each (drop products