|
|
|
|
@ -11,6 +11,8 @@ import SwiftUI |
|
|
|
|
|
|
|
|
|
@Observable |
|
|
|
|
final public class TeamRegistration: BaseTeamRegistration, SideStorable { |
|
|
|
|
@ObservationIgnored |
|
|
|
|
var _cachedRestingTime: (Bool, Date?)? |
|
|
|
|
|
|
|
|
|
// static func resourceName() -> String { "team-registrations" } |
|
|
|
|
// static func tokenExemptedMethods() -> [HTTPMethod] { return [] } |
|
|
|
|
@ -622,8 +624,6 @@ final public class TeamRegistration: BaseTeamRegistration, SideStorable { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var _cachedRestingTime: (Bool, Date?)? |
|
|
|
|
|
|
|
|
|
public func restingTime() -> Date? { |
|
|
|
|
if let _cachedRestingTime { return _cachedRestingTime.1 } |
|
|
|
|
let restingTime = matches().filter({ $0.hasEnded() }).sorted( |
|
|
|
|
|