added chat messages
This commit is contained in:
@@ -134,16 +134,16 @@ func (rsc *RoundStatsCreate) ExecX(ctx context.Context) {
|
||||
// check runs all checks and user-defined validators on the builder.
|
||||
func (rsc *RoundStatsCreate) check() error {
|
||||
if _, ok := rsc.mutation.Round(); !ok {
|
||||
return &ValidationError{Name: "round", err: errors.New(`ent: missing required field "round"`)}
|
||||
return &ValidationError{Name: "round", err: errors.New(`ent: missing required field "RoundStats.round"`)}
|
||||
}
|
||||
if _, ok := rsc.mutation.Bank(); !ok {
|
||||
return &ValidationError{Name: "bank", err: errors.New(`ent: missing required field "bank"`)}
|
||||
return &ValidationError{Name: "bank", err: errors.New(`ent: missing required field "RoundStats.bank"`)}
|
||||
}
|
||||
if _, ok := rsc.mutation.Equipment(); !ok {
|
||||
return &ValidationError{Name: "equipment", err: errors.New(`ent: missing required field "equipment"`)}
|
||||
return &ValidationError{Name: "equipment", err: errors.New(`ent: missing required field "RoundStats.equipment"`)}
|
||||
}
|
||||
if _, ok := rsc.mutation.Spent(); !ok {
|
||||
return &ValidationError{Name: "spent", err: errors.New(`ent: missing required field "spent"`)}
|
||||
return &ValidationError{Name: "spent", err: errors.New(`ent: missing required field "RoundStats.spent"`)}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user