diff --git a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateRecommendationGroup.swift b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateRecommendationGroup.swift index 2ccf57633..7e15ca9fe 100644 --- a/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateRecommendationGroup.swift +++ b/apple/OmnivoreKit/Sources/Services/DataService/Mutations/CreateRecommendationGroup.swift @@ -21,7 +21,8 @@ public extension DataService { ) } - let input = InputObjects.CreateGroupInput(name: name, + let input = InputObjects.CreateGroupInput(expiresInDays: OptionalArgument(14), + name: name, onlyAdminCanPost: OptionalArgument(onlyAdminCanPost), onlyAdminCanSeeMembers: OptionalArgument(onlyAdminCanSeeMembers)) diff --git a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift index c819a6fe9..e74df7245 100644 --- a/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift +++ b/apple/OmnivoreKit/Sources/Services/InternalModels/InternalRecommendation.swift @@ -10,8 +10,7 @@ public struct InternalRecommendation { let recommendedAt: Date func asManagedObject(inContext context: NSManagedObjectContext) -> Recommendation { - // let existing = Recommendation.lookup(byID: id, inContext: context) - let recommendation = /* existing ?? */ Recommendation(entity: Recommendation.entity(), insertInto: context) + let recommendation = Recommendation(entity: Recommendation.entity(), insertInto: context) recommendation.groupID = groupID recommendation.name = name recommendation.note = note