diff --git a/server/internal/handlers/plants/get_plants_v1.go b/server/internal/handlers/plants/get_plants_v1.go index fb5f0d6..4b650fe 100644 --- a/server/internal/handlers/plants/get_plants_v1.go +++ b/server/internal/handlers/plants/get_plants_v1.go @@ -18,6 +18,7 @@ func (h *Handler) GetPlantsV1( filter.Page = req.Page filter.Size = req.Size filter.SortBy = req.Sort + filter.IsDesc = req.IsDesc plants, count, err := h.storage.GetPlants(ctx, filter) if err != nil { return nil, status.Errorf(codes.Internal, "could not get plants. Error %v", err)