mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Make groups invite links default to 14 days validity
This commit is contained in:
parent
3f7aeb3955
commit
39c8b82939
2 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue