refactor: remove watchlist repository references and add get_remote_watchlist use case
This commit is contained in:
7
crates/application/src/use_cases/get_remote_watchlist.rs
Normal file
7
crates/application/src/use_cases/get_remote_watchlist.rs
Normal file
@@ -0,0 +1,7 @@
|
||||
use domain::{errors::DomainError, models::RemoteWatchlistEntry};
|
||||
|
||||
use crate::context::AppContext;
|
||||
|
||||
pub async fn execute(ctx: &AppContext, uuid: uuid::Uuid) -> Result<Vec<RemoteWatchlistEntry>, DomainError> {
|
||||
ctx.remote_watchlist_repository.get_by_derived_uuid(uuid).await
|
||||
}
|
||||
@@ -28,3 +28,5 @@ pub mod add_to_watchlist;
|
||||
pub mod remove_from_watchlist;
|
||||
pub mod get_watchlist;
|
||||
pub mod is_on_watchlist;
|
||||
#[cfg(feature = "federation")]
|
||||
pub mod get_remote_watchlist;
|
||||
|
||||
Reference in New Issue
Block a user