fix: add identity_uuid to /identities list + /file/:uuid/identities responses
This commit is contained in:
@@ -180,6 +180,7 @@ pub struct FileIdentitiesResponse {
|
||||
#[derive(Debug, Serialize)]
|
||||
pub struct FileIdentityItem {
|
||||
pub identity_id: i32,
|
||||
pub identity_uuid: Option<String>,
|
||||
pub name: String,
|
||||
pub metadata: serde_json::Value,
|
||||
pub face_count: Option<i32>,
|
||||
@@ -211,6 +212,7 @@ async fn get_file_identities(
|
||||
.into_iter()
|
||||
.map(|r| FileIdentityItem {
|
||||
identity_id: r.identity_id,
|
||||
identity_uuid: r.identity_uuid.map(|u| u.to_string()),
|
||||
name: r.name,
|
||||
metadata: r.metadata,
|
||||
face_count: r.face_count,
|
||||
|
||||
Reference in New Issue
Block a user