Skip to content

Commit

Permalink
fix: legacy code check
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Aug 3, 2024
1 parent 6997e4d commit 1f44d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/objects/person.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Object for user::Model {
data: &Data<Self::DataType>,
) -> Result<Option<Self>, Self::Error> {
let res = entities::prelude::User::find()
.filter(entities::user::Column::Id.eq(object_id.as_str()))
.filter(entities::user::Column::Url.eq(object_id.as_str()))
.one(data.database_connection.as_ref())
.await?;
Ok(res)
Expand Down

0 comments on commit 1f44d79

Please sign in to comment.