Skip to content

Commit

Permalink
pds: add GROUP BY on cid for listBlobs endpoint (#1761)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin Ivy <[email protected]>
  • Loading branch information
bnewbold and devinivy authored Oct 24, 2023
1 parent 825b2a0 commit ed33f64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pds/src/api/com/atproto/sync/listBlobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default function (server: Server, ctx: AppContext) {
.where('did', '=', did)
.select('cid')
.orderBy('cid', 'asc')
.groupBy('cid')
.limit(limit)
if (since) {
builder = builder.where('repoRev', '>', since)
Expand Down

0 comments on commit ed33f64

Please sign in to comment.