fix: find objects not activities

This commit is contained in:
əlemi 2024-04-19 04:57:06 +02:00
parent ab5d0cb61a
commit 629990fee8
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -20,7 +20,7 @@ pub async fn view(
ctx.oid(id.clone()) ctx.oid(id.clone())
}; };
let result = model::addressing::Entity::find_activities() let result = model::addressing::Entity::find_objects()
.filter(model::object::Column::Id.eq(&oid)) .filter(model::object::Column::Id.eq(&oid))
.filter(auth.filter_condition()) .filter(auth.filter_condition())
.into_model::<EmbeddedActivity>() .into_model::<EmbeddedActivity>()