recreate legacy project for testing

This commit is contained in:
Joe Mattiello
2023-03-01 08:04:31 -05:00
parent 493b3783f0
commit f3a70e1e47
31 changed files with 3911 additions and 28 deletions

View File

@@ -172,7 +172,7 @@ public extension DatabaseManager {
private extension DatabaseManager {
func prepareDatabase(completionHandler: @escaping (Result<Void, Error>) -> Void) {
guard !Bundle.isAppExtension else { return completionHandler(.success(())) }
guard !Bundle.isAppExtension() else { return completionHandler(.success(())) }
let context = persistentContainer.newBackgroundContext()
context.performAndWait {