Redownloads missing cached apps when refreshing or updating

This commit is contained in:
Riley Testut
2020-05-08 11:43:34 -07:00
parent b4299c71fb
commit 76008022e7
3 changed files with 16 additions and 9 deletions

View File

@@ -40,12 +40,9 @@ class RefreshAppOperation: ResultOperation<InstalledApp>
throw error
}
guard
let server = self.context.server,
let app = self.context.app,
let profiles = self.context.provisioningProfiles
else { throw OperationError.invalidParameters }
guard let server = self.context.server, let profiles = self.context.provisioningProfiles else { throw OperationError.invalidParameters }
guard let app = self.context.app else { throw OperationError.appNotFound }
guard let udid = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.deviceID) as? String else { throw OperationError.unknownUDID }
ServerManager.shared.connect(to: server) { (result) in