removed field vac, use date instead
This commit is contained in:
@@ -21,12 +21,8 @@ func init() {
|
||||
match.DefaultDemoParsed = matchDescDemoParsed.Default.(bool)
|
||||
playerFields := schema.Player{}.Fields()
|
||||
_ = playerFields
|
||||
// playerDescVac is the schema descriptor for vac field.
|
||||
playerDescVac := playerFields[5].Descriptor()
|
||||
// player.DefaultVac holds the default value on creation for the vac field.
|
||||
player.DefaultVac = playerDescVac.Default.(bool)
|
||||
// playerDescSteamUpdated is the schema descriptor for steam_updated field.
|
||||
playerDescSteamUpdated := playerFields[8].Descriptor()
|
||||
playerDescSteamUpdated := playerFields[7].Descriptor()
|
||||
// player.DefaultSteamUpdated holds the default value on creation for the steam_updated field.
|
||||
player.DefaultSteamUpdated = playerDescSteamUpdated.Default.(func() time.Time)
|
||||
}
|
||||
|
Reference in New Issue
Block a user