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

@@ -25,11 +25,10 @@ use resolver_api::{Resolve, ResolveToString};
use crate::{
config::core_config,
db::db_client,
helpers::resource::{
get_resource_ids_for_non_admin, StateResource,
},
state::{action_states, State},
state::{action_states, db_client, State},
};
#[async_trait]
@@ -76,7 +75,9 @@ impl Resolve<GetBuildActionState, User> for State {
.build
.get(&build.id)
.await
.unwrap_or_default();
.unwrap_or_default()
.get()
.await;
Ok(action_state)
}
}