fix(elixir): search not working

This commit is contained in:
Schuwi
2025-09-16 20:59:01 +02:00
parent 4223ba2f1e
commit 1bdfea8d02
2 changed files with 15 additions and 5 deletions

View File

@@ -284,8 +284,8 @@ defmodule ComponentsElixir.Inventory do
where(query, [c],
ilike(c.name, ^search_pattern) or
ilike(c.description, ^search_pattern) or
ilike(c.manufacturer, ^search_pattern) or
ilike(c.part_number, ^search_pattern)
ilike(c.keywords, ^search_pattern) or
ilike(c.position, ^search_pattern)
)
_, query -> query