Skip to content

Commit

Permalink
Merge pull request #55 from moevm/back-fix-3
Browse files Browse the repository at this point in the history
Fixed filters
  • Loading branch information
AnjeZenda authored Dec 5, 2024
2 parents 8de6f3a + e07e698 commit 5b8e2a7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ func (h *Handler) GetPlantsWithCareRulesV1(
req *api.GetPlantsWithCareRulesV1Request,
) (*api.GetPlantsWithCareRulesV1Response, error) {
filter := &models.Filter{
Page: req.Page,
Size: req.Size,
Page: req.Page,
Size: req.Size,
Labels: map[string]interface{}{},
}
if req.Filter.Species != "" {
filter.Labels["species"] = req.Filter.Species
Expand Down

0 comments on commit 5b8e2a7

Please sign in to comment.