mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-12-28 05:23:48 +03:00
style(client/keys): rename signature key to signed key
This commit is contained in:
parent
c15205fb46
commit
0ddc3c01ef
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ pub async fn upload_signatures_route(
|
|||
let key = serde_json::to_value(key)
|
||||
.map_err(|_| Error::BadRequest(ErrorKind::InvalidParam, "Invalid key JSON"))?;
|
||||
|
||||
let is_signature_key = match key.get("usage") {
|
||||
let is_signed_key = match key.get("usage") {
|
||||
Some(usage) => usage
|
||||
.as_array()
|
||||
.map(|usage| !usage.contains(&json!("master")))
|
||||
|
@ -161,7 +161,7 @@ pub async fn upload_signatures_route(
|
|||
None => true,
|
||||
};
|
||||
|
||||
if !is_signature_key {
|
||||
if !is_signed_key {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue