Files
movies-diary/crates/application/src/social/get_pending.rs
2026-07-10 16:03:36 +02:00

19 lines
461 B
Rust

use domain::{
errors::DomainError,
value_objects::{SocialActor, UserId},
};
use super::{deps::SocialQueryDeps, queries::GetPendingFollowersQuery};
pub async fn execute(
deps: &SocialQueryDeps,
query: GetPendingFollowersQuery,
) -> Result<Vec<SocialActor>, DomainError> {
let user_id = UserId::from_uuid(query.user_id);
deps.social_query.get_pending_followers(&user_id).await
}
#[cfg(test)]
#[path = "tests/get_pending.rs"]
mod tests;