From 91612e4d5abc20275ed36472b4767b9a76237a4a Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 27 May 2024 21:03:56 +0200 Subject: [PATCH] fix: id could not be found to build model, oooohhh --- src/server/context.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/server/context.rs b/src/server/context.rs index 8e19f53..e310010 100644 --- a/src/server/context.rs +++ b/src/server/context.rs @@ -186,6 +186,7 @@ impl Context { .filter(model::object::Column::Internal.eq(internal)) .select_only() .select_column(model::object::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some() @@ -198,6 +199,7 @@ impl Context { .filter(model::activity::Column::Internal.eq(internal)) .select_only() .select_column(model::activity::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some() @@ -208,9 +210,10 @@ impl Context { pub async fn is_local_internal_actor(&self, internal: i64) -> crate::Result { Ok( model::actor::Entity::find() - .filter(model::activity::Column::Internal.eq(internal)) + .filter(model::actor::Column::Internal.eq(internal)) .select_only() .select_column(model::actor::Column::Internal) + .into_tuple::() .one(self.db()) .await? .is_some()