app: person enrichment use case + staleness checks

This commit is contained in:
2026-06-11 13:36:43 +02:00
parent 517a18da8a
commit 371a3cdc46
10 changed files with 70 additions and 8 deletions

View 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
}