Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

feat: include notes in search (#159)

Haydenf149c3e4abae
diff --git a/backend/internal/data/repo/repo_items.go b/backend/internal/data/repo/repo_items.go
index d01c1dc3..882f2d2f 100644
--- a/backend/internal/data/repo/repo_items.go
+++ b/backend/internal/data/repo/repo_items.go
@@ -320,6 +320,7 @@ func (e *ItemsRepository) QueryByGroup(ctx context.Context, gid uuid.UUID, q Ite
item.Or(
item.NameContainsFold(q.Search),
item.DescriptionContainsFold(q.Search),
+ item.NotesContainsFold(q.Search),
),
)
}