removed field vac, use date instead

This commit is contained in:
2021-10-22 23:11:35 +02:00
parent f1176fc7e7
commit 7d1dcaa555
10 changed files with 4 additions and 173 deletions

View File

@@ -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)
}