mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +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,
|
db: &mut Db,
|
||||||
id: &PackageId,
|
id: &PackageId,
|
||||||
) -> Result<(), Error> {
|
) -> Result<(), Error> {
|
||||||
|
crate::db::DatabaseModel::new()
|
||||||
|
.package_data()
|
||||||
|
.lock(db, LockType::Write)
|
||||||
|
.await?;
|
||||||
let pde = crate::db::DatabaseModel::new()
|
let pde = crate::db::DatabaseModel::new()
|
||||||
.package_data()
|
.package_data()
|
||||||
.idx_model(id)
|
.idx_model(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user