feat: include notes in search (#159)

This commit is contained in:
Hayden 2022-12-01 17:32:11 -09:00 committed by GitHub
parent 1dc1ee54e2
commit f149c3e4ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
),
)
}