Skip to content

Commit

Permalink
Fix batch mint query for selecting random mints
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Oct 18, 2023
1 parent 6c05730 commit c3b95d2
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 @@ -1337,9 +1337,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 c3b95d2

Please sign in to comment.