Skip to content

Commit

Permalink
stores: remove GROUP BY
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Dec 20, 2023
1 parent 10a8b97 commit dfb3471
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion stores/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,6 @@ func (s *SQLStore) ListObjects(ctx context.Context, bucket, prefix, sortBy, sort
Model(&dbObject{}).
Table("objects o").
Joins("INNER JOIN buckets b ON o.db_bucket_id = b.id").
Group("o.object_id").
Where("b.name = ? AND ? AND ?", bucket, prefixExpr, markerExpr).
Order(orderBy).
Order(markerOrderBy).
Expand Down

0 comments on commit dfb3471

Please sign in to comment.