don't label newly created uuids
parent
a74e86e70d
commit
75f9282ea2
|
@ -337,12 +337,7 @@ pub async fn put_object(
|
|||
let address = in_address.try_into().map_err(ErrorBadRequest)?;
|
||||
|
||||
let entries_to_add = match &address {
|
||||
Address::Hash(_) => vec![],
|
||||
Address::Uuid(uuid) => vec![Entry {
|
||||
entity: address.clone(),
|
||||
attribute: LABEL_ATTR.to_string(),
|
||||
value: EntryValue::String(uuid.to_string()),
|
||||
}],
|
||||
Address::Hash(_) | Address::Uuid(_) => vec![],
|
||||
Address::Attribute(attribute) => vec![Entry {
|
||||
entity: address.clone(),
|
||||
attribute: LABEL_ATTR.to_string(),
|
||||
|
@ -435,7 +430,7 @@ pub async fn put_object(
|
|||
}
|
||||
|
||||
if let Some(filename) = filename {
|
||||
let _ = upend_insert_val!(&connection, address, "LBL", filename);
|
||||
let _ = upend_insert_val!(&connection, address, LABEL_ATTR, filename);
|
||||
}
|
||||
|
||||
Ok((None, Some(address)))
|
||||
|
|
Loading…
Reference in New Issue