From 863a5e8b3d224c23bff78929e01ae0f5027dcccf Mon Sep 17 00:00:00 2001 From: Corey Date: Sat, 8 Apr 2023 20:47:59 -0400 Subject: [PATCH] fix OCKCDPostalAddress CoreData init --- CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift b/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift index 13d836c86..86770890c 100644 --- a/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift +++ b/CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift @@ -41,8 +41,8 @@ class OCKCDPostalAddress: NSManagedObject { @NSManaged var country: String @NSManaged var isoCountryCode: String - init(address: OCKPostalAddress, context: NSManagedObjectContext) { - super.init(entity: Self.entity(), insertInto: context) + convenience init(address: OCKPostalAddress, context: NSManagedObjectContext) { + self.init(entity: Self.entity(), insertInto: context) street = address.street subLocality = address.subLocality city = address.city