Skip to content

Commit

Permalink
Merge pull request #227 from holaplex/abdul/fix-queued-mints-loader
Browse files Browse the repository at this point in the history
Fix queued mints dataloader
  • Loading branch information
imabdulbasit authored Sep 15, 2023
2 parents 744cd57 + 02c082a commit b9fdd5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/dataloaders/collection_mints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ impl DataLoader<Uuid> for QueuedMintsLoader {
async fn load(&self, keys: &[Uuid]) -> Result<HashMap<Uuid, Self::Value>, Self::Error> {
let drop_mints = drops::Entity::find()
.select_with(collection_mints::Entity)
.join(JoinType::InnerJoin, drops::Relation::Collections.def())
.join(
JoinType::InnerJoin,
collection_mints::Relation::Collections.def(),
collections::Relation::CollectionMints.def(),
)
.join(JoinType::InnerJoin, collections::Relation::Drop.def())
.filter(collection_mints::Column::CreationStatus.eq(CreationStatus::Queued))
.filter(drops::Column::Id.is_in(keys.iter().map(ToOwned::to_owned)))
.all(self.db.get())
Expand Down

0 comments on commit b9fdd5b

Please sign in to comment.