From 1f44d79f2b660685c9c69e8bd70cf4695eae2dee Mon Sep 17 00:00:00 2001 From: aprilthepink Date: Sat, 3 Aug 2024 11:00:02 +0200 Subject: [PATCH] fix: legacy code check --- src/objects/person.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/person.rs b/src/objects/person.rs index 88c9c77..22284cb 100644 --- a/src/objects/person.rs +++ b/src/objects/person.rs @@ -163,7 +163,7 @@ impl Object for user::Model { data: &Data, ) -> Result, 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)