removed unneeded field, fixed not setting spent amount

This commit is contained in:
2021-10-17 04:17:02 +02:00
parent fd8c026a8e
commit 9973951d4b
9 changed files with 12 additions and 285 deletions

View File

@@ -27,8 +27,6 @@ const (
FieldMaxRounds = "max_rounds"
// FieldDemoParsed holds the string denoting the demo_parsed field in the database.
FieldDemoParsed = "demo_parsed"
// FieldEco holds the string denoting the eco field in the database.
FieldEco = "eco"
// EdgeStats holds the string denoting the stats edge name in mutations.
EdgeStats = "stats"
// EdgePlayers holds the string denoting the players edge name in mutations.
@@ -62,7 +60,6 @@ var Columns = []string{
FieldMatchResult,
FieldMaxRounds,
FieldDemoParsed,
FieldEco,
}
var (

View File

@@ -994,20 +994,6 @@ func DemoParsedNEQ(v bool) predicate.Match {
})
}
// EcoIsNil applies the IsNil predicate on the "eco" field.
func EcoIsNil() predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.IsNull(s.C(FieldEco)))
})
}
// EcoNotNil applies the NotNil predicate on the "eco" field.
func EcoNotNil() predicate.Match {
return predicate.Match(func(s *sql.Selector) {
s.Where(sql.NotNull(s.C(FieldEco)))
})
}
// HasStats applies the HasEdge predicate on the "stats" edge.
func HasStats() predicate.Match {
return predicate.Match(func(s *sql.Selector) {