Skip to content

Commit

Permalink
project collection loader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alchemistgo87 committed Jul 19, 2023
1 parent 1d57f2e commit 22fcac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/dataloaders/project_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl DataLoader<Uuid> for ProjectCollectionLoader {

async fn load(&self, keys: &[Uuid]) -> Result<HashMap<Uuid, Self::Value>, Self::Error> {
let collections = collections::Entity::find()
.filter(collections::Column::ProjectId.is_in(keys.iter().map(ToOwned::to_owned)))
.filter(collections::Column::Id.is_in(keys.iter().map(ToOwned::to_owned)))
.all(self.db.get())
.await?;

Expand Down

0 comments on commit 22fcac3

Please sign in to comment.