revert storage push

multistore
Laurent 1 year ago
parent 38071b0523
commit 8dffc0a3e6
  1. 10
      PadelClub/Data/Club.swift

@ -53,11 +53,11 @@ class Club : ModelObject, Storable, Hashable {
self.broadcastCode = broadcastCode self.broadcastCode = broadcastCode
} }
override func onServerInsert(serverCopy: any Storable) -> Bool { // override func onServerInsert(serverCopy: any Storable) -> Bool {
guard let copy = serverCopy as? Club else { return false } // guard let copy = serverCopy as? Club else { return false }
self.broadcastCode = copy.broadcastCode // self.broadcastCode = copy.broadcastCode
return true // return true
} // }
func clubTitle(_ displayStyle: DisplayStyle = .wide) -> String { func clubTitle(_ displayStyle: DisplayStyle = .wide) -> String {
switch displayStyle { switch displayStyle {

Loading…
Cancel
Save