Skip to content

Commit

Permalink
Shield Sea ORM: Fix entity join
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Dec 29, 2024
1 parent 5370809 commit c5d15e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storage/shield-sea-orm/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Storage<User> for SeaOrmStorage {

let user_and_entity = user::Entity::find()
.find_also_related(entity::Entity)
.join(JoinType::LeftJoin, user::Relation::Entity.def())
// .join(JoinType::LeftJoin, user::Relation::Entity.def())
.join(JoinType::LeftJoin, entity::Relation::EmailAddress.def())
.filter(email_address::Column::Email.eq(email))
.one(&self.database)
Expand Down

0 comments on commit c5d15e8

Please sign in to comment.