removed unneeded field, fixed not setting spent amount
This commit is contained in:
@@ -106,32 +106,6 @@ func (mc *MatchCreate) SetNillableDemoParsed(b *bool) *MatchCreate {
|
||||
return mc
|
||||
}
|
||||
|
||||
// SetEco sets the "eco" field.
|
||||
func (mc *MatchCreate) SetEco(s struct {
|
||||
Rounds []*struct {
|
||||
Team int "json:\"team\""
|
||||
Bank int "json:\"bank\""
|
||||
Equipment int "json:\"equipment\""
|
||||
} "json:\"rounds\""
|
||||
}) *MatchCreate {
|
||||
mc.mutation.SetEco(s)
|
||||
return mc
|
||||
}
|
||||
|
||||
// SetNillableEco sets the "eco" field if the given value is not nil.
|
||||
func (mc *MatchCreate) SetNillableEco(s *struct {
|
||||
Rounds []*struct {
|
||||
Team int "json:\"team\""
|
||||
Bank int "json:\"bank\""
|
||||
Equipment int "json:\"equipment\""
|
||||
} "json:\"rounds\""
|
||||
}) *MatchCreate {
|
||||
if s != nil {
|
||||
mc.SetEco(*s)
|
||||
}
|
||||
return mc
|
||||
}
|
||||
|
||||
// SetID sets the "id" field.
|
||||
func (mc *MatchCreate) SetID(u uint64) *MatchCreate {
|
||||
mc.mutation.SetID(u)
|
||||
@@ -384,14 +358,6 @@ func (mc *MatchCreate) createSpec() (*Match, *sqlgraph.CreateSpec) {
|
||||
})
|
||||
_node.DemoParsed = value
|
||||
}
|
||||
if value, ok := mc.mutation.Eco(); ok {
|
||||
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeJSON,
|
||||
Value: value,
|
||||
Column: match.FieldEco,
|
||||
})
|
||||
_node.Eco = value
|
||||
}
|
||||
if nodes := mc.mutation.StatsIDs(); len(nodes) > 0 {
|
||||
edge := &sqlgraph.EdgeSpec{
|
||||
Rel: sqlgraph.O2M,
|
||||
|
Reference in New Issue
Block a user