Skip to content

Commit

Permalink
Merge branch 'feature/add-tree-cluster-pagination' of https://github.…
Browse files Browse the repository at this point in the history
…com/green-ecolution/green-ecolution-backend into feature/add-tree-cluster-pagination
  • Loading branch information
Dorien Grönwald committed Jan 26, 2025
2 parents f184c6a + e37c11f commit 3908492
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/postgres/treecluster/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (r *TreeClusterRepository) GetAll(ctx context.Context) ([]*entities.TreeClu

if page <= 0 || (limit != -1 && limit <= 0) {
log.Debug("invalid page and limit values")
return []*entities.TreeCluster{}, 0, r.store.MapError(storage.ErrPaginationValueInvalid, sqlc.TreeCluster{})
return nil, 0, r.store.MapError(storage.ErrPaginationValueInvalid, sqlc.TreeCluster{})
}

totalCount, err := r.store.GetAllTreeClustersCount(ctx)
Expand Down

0 comments on commit 3908492

Please sign in to comment.