mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix: found a unsaturaded args fix
This commit is contained in:
@@ -163,7 +163,7 @@ pub async fn cleanup(ctx: &RpcContext, id: &PackageId, version: &Version) -> Res
|
|||||||
|
|
||||||
pub struct CleanupFailedReceipts {
|
pub struct CleanupFailedReceipts {
|
||||||
package_data_entry: LockReceipt<PackageDataEntry, String>,
|
package_data_entry: LockReceipt<PackageDataEntry, String>,
|
||||||
package_entries: LockReceipt<AllPackageData, String>,
|
package_entries: LockReceipt<AllPackageData, ()>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CleanupFailedReceipts {
|
impl CleanupFailedReceipts {
|
||||||
@@ -233,13 +233,9 @@ pub async fn cleanup_failed<Db: DbHandle>(
|
|||||||
|
|
||||||
match pde {
|
match pde {
|
||||||
PackageDataEntry::Installing { .. } | PackageDataEntry::Restoring { .. } => {
|
PackageDataEntry::Installing { .. } | PackageDataEntry::Restoring { .. } => {
|
||||||
let mut entries = receipts
|
let mut entries = receipts.package_entries.get(db).await?;
|
||||||
.package_entries
|
|
||||||
.get(db, id)
|
|
||||||
.await?
|
|
||||||
.ok_or_else(not_found)?;
|
|
||||||
entries.0.remove(id);
|
entries.0.remove(id);
|
||||||
receipts.package_entries.set(db, entries, id).await?;
|
receipts.package_entries.set(db, entries).await?;
|
||||||
}
|
}
|
||||||
PackageDataEntry::Updating {
|
PackageDataEntry::Updating {
|
||||||
installed,
|
installed,
|
||||||
|
|||||||
Reference in New Issue
Block a user