|
|
|
|
@ -111,6 +111,9 @@ public class DataStore: ObservableObject { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fileprivate func _fixMissingClubCreatorIfNecessary(_ clubsCollection: SyncedCollection<Club>) { |
|
|
|
|
|
|
|
|
|
if self.user.clubs.count > 0 { return } |
|
|
|
|
|
|
|
|
|
for club in clubsCollection { |
|
|
|
|
if let userId = StoreCenter.main.userId, club.creator == nil { |
|
|
|
|
club.creator = userId |
|
|
|
|
|