feat: enable search by serial number or model number (#677)

Co-authored-by: zebrapurring <>
Former-commit-id: f2f7809360
This commit is contained in:
zebrapurring 2024-01-18 20:46:40 +01:00 committed by GitHub
parent 2b79788fbe
commit 84aee20208

View file

@ -341,8 +341,10 @@ 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),
item.SerialNumberContainsFold(q.Search),
item.ModelNumberContainsFold(q.Search),
item.ManufacturerContainsFold(q.Search),
item.NotesContainsFold(q.Search),
),
)
}