Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justraman committed Oct 7, 2024
1 parent 052c9da commit ccc08ee
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server-extension/resolvers/top_collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ export class TopCollectionResolver {
inBuilder
.from(ListingSale, 'sale')
.innerJoin(Listing, 'listing', 'listing.id = sale.listing')
.innerJoin(Token, 'token', "listing.make_asset_id_id = token.id && listing.make_asset_id_id != '0-0'")
.innerJoin(
Token,
'token',
"listing.make_asset_id_id = token.id AND listing.make_asset_id_id != '0-0'"
)
.innerJoin(Collection, 'collection', 'token.collection = collection.id')
.leftJoin(ListingStatus, 'status', `listing.id = status.listing AND status.type = 'Finalized'`)
.addGroupBy('collection.id')
Expand Down

0 comments on commit ccc08ee

Please sign in to comment.