mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
fix lock type escalation
This commit is contained in:
committed by
Aiden McClelland
parent
5b87aca298
commit
0b1f544fd7
@@ -132,6 +132,10 @@ pub async fn cleanup_failed<Db: DbHandle>(
|
||||
db: &mut Db,
|
||||
id: &PackageId,
|
||||
) -> Result<(), Error> {
|
||||
crate::db::DatabaseModel::new()
|
||||
.package_data()
|
||||
.lock(db, LockType::Write)
|
||||
.await?;
|
||||
let pde = crate::db::DatabaseModel::new()
|
||||
.package_data()
|
||||
.idx_model(id)
|
||||
|
||||
Reference in New Issue
Block a user