Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
feat: enable search by serial number or model number (#677)
Browse files Browse the repository at this point in the history
Co-authored-by: zebrapurring <>
Former-commit-id: f2f7809
  • Loading branch information
zebrapurring authored Jan 18, 2024
1 parent 2b79788 commit 84aee20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/internal/data/repo/repo_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
)
}
Expand Down

0 comments on commit 84aee20

Please sign in to comment.