Skip to content

Commit

Permalink
Merge pull request #259 from holaplex/abdul/fix-batch-query
Browse files Browse the repository at this point in the history
Fix batch mint query for selecting random mints
  • Loading branch information
imabdulbasit authored Oct 18, 2023
2 parents cffc7ac + c3b95d2 commit 9fdb8fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/mutations/mint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,9 @@ impl Mutation {
.select_also(metadata_jsons::Entity)
.join(
JoinType::InnerJoin,
metadata_jsons::Entity::belongs_to(CollectionMints)
.from(metadata_jsons::Column::Id)
.to(collection_mints::Column::Id)
collection_mints::Entity::belongs_to(metadata_jsons::Entity)
.from(collection_mints::Column::Id)
.to(metadata_jsons::Column::Id)
.into(),
)
.filter(collection_mints::Column::CollectionId.eq(drop.collection_id))
Expand Down

0 comments on commit 9fdb8fd

Please sign in to comment.