mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2024-11-27 11:45:23 +00:00
style(client/keys): rename signature key to signed key
This commit is contained in:
parent
c15205fb46
commit
0ddc3c01ef
|
@ -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