Adds InstalledApp.team relationship

This commit is contained in:
Riley Testut
2020-01-14 18:39:08 -08:00
parent a20feccae2
commit c2d1b3628e
4 changed files with 12 additions and 3 deletions

View File

@@ -66,6 +66,11 @@ class InstallAppOperation: ResultOperation<InstalledApp>
installedApp.expirationDate = profile.expirationDate
}
if let team = Team.first(satisfying: NSPredicate(format: "%K == %@", #keyPath(Team.isActiveTeam), NSNumber(value: true)), in: backgroundContext)
{
installedApp.team = team
}
// Temporary directory and resigned .ipa no longer needed, so delete them now to ensure AltStore doesn't quit before we get the chance to.
self.cleanUp()