fix: identity tmdb_profile returns local path instead of TMDb URL
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user