deleted round from db/response
This commit is contained in:
@@ -92,12 +92,6 @@ func (mc *MatchCreate) SetMaxRounds(i int) *MatchCreate {
|
||||
return mc
|
||||
}
|
||||
|
||||
// SetRounds sets the "rounds" field.
|
||||
func (mc *MatchCreate) SetRounds(i int) *MatchCreate {
|
||||
mc.mutation.SetRounds(i)
|
||||
return mc
|
||||
}
|
||||
|
||||
// SetDemoExpired sets the "demo_expired" field.
|
||||
func (mc *MatchCreate) SetDemoExpired(b bool) *MatchCreate {
|
||||
mc.mutation.SetDemoExpired(b)
|
||||
@@ -292,9 +286,6 @@ func (mc *MatchCreate) check() error {
|
||||
if _, ok := mc.mutation.MaxRounds(); !ok {
|
||||
return &ValidationError{Name: "max_rounds", err: errors.New(`ent: missing required field "max_rounds"`)}
|
||||
}
|
||||
if _, ok := mc.mutation.Rounds(); !ok {
|
||||
return &ValidationError{Name: "rounds", err: errors.New(`ent: missing required field "rounds"`)}
|
||||
}
|
||||
if _, ok := mc.mutation.DemoExpired(); !ok {
|
||||
return &ValidationError{Name: "demo_expired", err: errors.New(`ent: missing required field "demo_expired"`)}
|
||||
}
|
||||
@@ -406,14 +397,6 @@ func (mc *MatchCreate) createSpec() (*Match, *sqlgraph.CreateSpec) {
|
||||
})
|
||||
_node.MaxRounds = value
|
||||
}
|
||||
if value, ok := mc.mutation.Rounds(); ok {
|
||||
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeInt,
|
||||
Value: value,
|
||||
Column: match.FieldRounds,
|
||||
})
|
||||
_node.Rounds = value
|
||||
}
|
||||
if value, ok := mc.mutation.DemoExpired(); ok {
|
||||
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeBool,
|
||||
|
Reference in New Issue
Block a user