This commit is contained in:
aprilthepink 2024-08-03 11:34:46 +02:00
parent 8ee5eb52bd
commit 12581254d2

View file

@ -162,6 +162,7 @@ impl Object for user::Model {
object_id: Url,
data: &Data<Self::DataType>,
) -> Result<Option<Self>, Self::Error> {
println!("!!!!!!!!Reading user from id!!!!!!!!!!!: {}", object_id);
let res = entities::prelude::User::find()
.filter(entities::user::Column::Url.eq(object_id.as_str()))
.one(data.database_connection.as_ref())