From 02c082a2ee9e70805d51bf91dc2ef1b9ff38c867 Mon Sep 17 00:00:00 2001 From: imabdulbasit Date: Sat, 16 Sep 2023 02:56:17 +0500 Subject: [PATCH] Fix queued mints dataloader --- api/src/dataloaders/collection_mints.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/dataloaders/collection_mints.rs b/api/src/dataloaders/collection_mints.rs index ede98b2..22a1383 100644 --- a/api/src/dataloaders/collection_mints.rs +++ b/api/src/dataloaders/collection_mints.rs @@ -140,11 +140,11 @@ impl DataLoader for QueuedMintsLoader { async fn load(&self, keys: &[Uuid]) -> Result, 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())