Fix account container lookup so that it doesn't keep creating records.

This commit is contained in:
Maurice Parker 2020-03-30 18:14:07 -05:00
parent 1ee3c3d85a
commit 6d3e6914df
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ final class CloudKitAccountZone: CloudKitZone {
} }
func findOrCreateAccount(completion: @escaping (Result<String, Error>) -> Void) { func findOrCreateAccount(completion: @escaping (Result<String, Error>) -> Void) {
let predicate = NSPredicate(format: "isAccount = true") let predicate = NSPredicate(format: "isAccount = \"true\"")
let ckQuery = CKQuery(recordType: CloudKitContainer.recordType, predicate: predicate) let ckQuery = CKQuery(recordType: CloudKitContainer.recordType, predicate: predicate)
query(ckQuery) { result in query(ckQuery) { result in