Flat use_cases/ (44 files) + monolithic commands.rs/queries.rs split into diary/, movies/, watchlist/, import/, auth/, users/, integrations/, search/, person/, federation/ — each with own commands.rs, queries.rs, and use case modules. Inline tests extracted to sibling tests/ dirs.
7 lines
189 B
Rust
7 lines
189 B
Rust
use crate::context::AppContext;
|
|
use domain::errors::DomainError;
|
|
|
|
pub async fn execute(ctx: &AppContext) -> Result<u64, DomainError> {
|
|
ctx.repos.import_session.delete_expired().await
|
|
}
|