fix: identity tmdb_profile returns local path instead of TMDb URL

This commit is contained in:
Accusys
2026-05-18 01:34:39 +08:00
parent a1f85de885
commit 5c24cb2214

View File

@@ -262,7 +262,7 @@ async fn get_identity_detail(
match identity {
Some(i) => Ok(Json(IdentityDetailResponse {
success: true,
identity_uuid: i.uuid,
identity_uuid: i.uuid.clone(),
name: i.name,
identity_type: i.identity_type,
source: i.source,
@@ -270,7 +270,7 @@ async fn get_identity_detail(
metadata: i.metadata,
reference_data: i.reference_data,
tmdb_id: i.tmdb_id,
tmdb_profile: i.tmdb_profile,
tmdb_profile: Some(format!("{}/identities/{}/profile.jpg", crate::core::config::OUTPUT_DIR.as_str(), i.uuid.replace('-', ""))),
created_at: i.created_at,
updated_at: i.updated_at,
})),