Fix account container lookup so that it doesn't keep creating records.
This commit is contained in:
parent
1ee3c3d85a
commit
6d3e6914df
|
@ -89,7 +89,7 @@ final class CloudKitAccountZone: CloudKitZone {
|
|||
}
|
||||
|
||||
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)
|
||||
|
||||
query(ckQuery) { result in
|
||||
|
|
Loading…
Reference in New Issue