improve the resource busy locks

This commit is contained in:
mbecker20
2024-04-27 15:09:30 -07:00
parent 0fc6e89ffe
commit fab4e8e534
65 changed files with 1179 additions and 1349 deletions

View File

@@ -28,13 +28,11 @@ use periphery_client::api;
use resolver_api::Resolve;
use crate::{
db::db_client,
helpers::{
cache::deployment_status_cache,
periphery_client,
resource::{get_resource_ids_for_non_admin, StateResource},
},
state::{action_states, State},
state::{action_states, db_client, deployment_status_cache, State},
};
#[async_trait]
@@ -270,7 +268,9 @@ impl Resolve<GetDeploymentActionState, User> for State {
.deployment
.get(&deployment.id)
.await
.unwrap_or_default();
.unwrap_or_default()
.get()
.await;
Ok(action_state)
}
}