fixed bug with recording matches on older versions, added colour scheme models
This commit is contained in:
@@ -48,13 +48,13 @@ final class Match: Model, Content {
|
||||
|
||||
|
||||
@Field(key: "lossReason")
|
||||
var lossReason: Int
|
||||
var lossReason: Int?
|
||||
|
||||
|
||||
|
||||
init() { }
|
||||
|
||||
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?, codGame:String?, notes:String?, players:String?, sweaty:Bool?, finalKillRuinedPlayerId:Int?, numberOfFinalKillsRuined:Int?,competitive:Bool, gameMode:Int, lossReason:Int) {
|
||||
init(id: UUID? = nil, map:String?, win:Bool, date:Date, roundsWon:Int?, roundsLost:Int?, codGame:String?, notes:String?, players:String?, sweaty:Bool?, finalKillRuinedPlayerId:Int?, numberOfFinalKillsRuined:Int?,competitive:Bool, gameMode:Int, lossReason:Int = 0) {
|
||||
self.id = id
|
||||
self.map = map
|
||||
self.win = win
|
||||
|
||||
Reference in New Issue
Block a user