app: person enrichment use case + staleness checks
This commit is contained in:
13
crates/application/src/person/enrich.rs
Normal file
13
crates/application/src/person/enrich.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
use crate::context::AppContext;
|
||||
use domain::{
|
||||
errors::DomainError,
|
||||
models::{PersonEnrichmentData, PersonId},
|
||||
};
|
||||
|
||||
pub async fn execute(
|
||||
ctx: &AppContext,
|
||||
person_id: PersonId,
|
||||
data: PersonEnrichmentData,
|
||||
) -> Result<(), DomainError> {
|
||||
ctx.repos.person_command.update_enrichment(&person_id, &data).await
|
||||
}
|
||||
Reference in New Issue
Block a user