added chat messages

This commit is contained in:
2022-01-29 19:32:13 +01:00
parent 2e6c94de81
commit b036275665
48 changed files with 4167 additions and 353 deletions

View File

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