don't label newly created uuids
This commit is contained in:
parent
a74e86e70d
commit
75f9282ea2
1 changed files with 2 additions and 7 deletions
|
@ -337,12 +337,7 @@ pub async fn put_object(
|
||||||
let address = in_address.try_into().map_err(ErrorBadRequest)?;
|
let address = in_address.try_into().map_err(ErrorBadRequest)?;
|
||||||
|
|
||||||
let entries_to_add = match &address {
|
let entries_to_add = match &address {
|
||||||
Address::Hash(_) => vec![],
|
Address::Hash(_) | Address::Uuid(_) => vec![],
|
||||||
Address::Uuid(uuid) => vec![Entry {
|
|
||||||
entity: address.clone(),
|
|
||||||
attribute: LABEL_ATTR.to_string(),
|
|
||||||
value: EntryValue::String(uuid.to_string()),
|
|
||||||
}],
|
|
||||||
Address::Attribute(attribute) => vec![Entry {
|
Address::Attribute(attribute) => vec![Entry {
|
||||||
entity: address.clone(),
|
entity: address.clone(),
|
||||||
attribute: LABEL_ATTR.to_string(),
|
attribute: LABEL_ATTR.to_string(),
|
||||||
|
@ -435,7 +430,7 @@ pub async fn put_object(
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(filename) = filename {
|
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)))
|
Ok((None, Some(address)))
|
||||||
|
|
Loading…
Reference in a new issue