Skip to content

Commit

Permalink
finish migration
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez committed Sep 17, 2024
1 parent ec651f7 commit 82ade65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/algebra/secrets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ impl SecretsClient {
.event
.get_one(doc! {
"ownership.buildableId": buildable_id,
"key": key
"key": key,
"deleted": false
})
.await?
.ok_or(InternalError::key_not_found("Event access not found", None))?;
Expand All @@ -75,7 +76,9 @@ impl SecretsClient {
InternalError::io_err(&format!("Failed to send request: {err}"), None)
})?;

let secret: Secret = response.json().await.map_err(|err| {
let secret = response.json().await;

let secret: Secret = secret.map_err(|err| {
InternalError::serialize_error(&format!("Failed to deserialize response: {err}"), None)
})?;

Expand Down

0 comments on commit 82ade65

Please sign in to comment.