feat: extensible search engine with person entities (FTS5/tsvector)
This commit is contained in:
6
crates/application/src/use_cases/get_person_credits.rs
Normal file
6
crates/application/src/use_cases/get_person_credits.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use domain::{errors::DomainError, models::{PersonCredits, PersonId}};
|
||||
use crate::context::AppContext;
|
||||
|
||||
pub async fn execute(ctx: &AppContext, id: PersonId) -> Result<PersonCredits, DomainError> {
|
||||
ctx.person_query.get_credits(&id).await
|
||||
}
|
||||
Reference in New Issue
Block a user