fix: id could not be found to build model, oooohhh
This commit is contained in:
parent
dd67b005dc
commit
91612e4d5a
1 changed files with 4 additions and 1 deletions
|
@ -186,6 +186,7 @@ impl Context {
|
|||
.filter(model::object::Column::Internal.eq(internal))
|
||||
.select_only()
|
||||
.select_column(model::object::Column::Internal)
|
||||
.into_tuple::<i64>()
|
||||
.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::<i64>()
|
||||
.one(self.db())
|
||||
.await?
|
||||
.is_some()
|
||||
|
@ -208,9 +210,10 @@ impl Context {
|
|||
pub async fn is_local_internal_actor(&self, internal: i64) -> crate::Result<bool> {
|
||||
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::<i64>()
|
||||
.one(self.db())
|
||||
.await?
|
||||
.is_some()
|
||||
|
|
Loading…
Reference in a new issue