From f149c3e4abaeb1e095ab72a6956fa25ddfee5a1a Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Thu, 1 Dec 2022 17:32:11 -0900 Subject: [PATCH] feat: include notes in search (#159) --- backend/internal/data/repo/repo_items.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/internal/data/repo/repo_items.go b/backend/internal/data/repo/repo_items.go index d01c1dc..882f2d2 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), ), ) }