updated deps & goent

This commit is contained in:
2022-03-30 15:14:35 +02:00
parent cecdbc7a00
commit ac512aec2f
10 changed files with 86 additions and 85 deletions

View File

@@ -133,7 +133,7 @@ func (rsq *RoundStatsQuery) FirstIDX(ctx context.Context) int {
}
// Only returns a single RoundStats entity found by the query, ensuring it only returns one.
// Returns a *NotSingularError when exactly one RoundStats entity is not found.
// Returns a *NotSingularError when more than one RoundStats entity is found.
// Returns a *NotFoundError when no RoundStats entities are found.
func (rsq *RoundStatsQuery) Only(ctx context.Context) (*RoundStats, error) {
nodes, err := rsq.Limit(2).All(ctx)
@@ -160,7 +160,7 @@ func (rsq *RoundStatsQuery) OnlyX(ctx context.Context) *RoundStats {
}
// OnlyID is like Only, but returns the only RoundStats ID in the query.
// Returns a *NotSingularError when exactly one RoundStats ID is not found.
// Returns a *NotSingularError when more than one RoundStats ID is found.
// Returns a *NotFoundError when no entities are found.
func (rsq *RoundStatsQuery) OnlyID(ctx context.Context) (id int, err error) {
var ids []int
@@ -270,8 +270,9 @@ func (rsq *RoundStatsQuery) Clone() *RoundStatsQuery {
predicates: append([]predicate.RoundStats{}, rsq.predicates...),
withMatchPlayer: rsq.withMatchPlayer.Clone(),
// clone intermediate query.
sql: rsq.sql.Clone(),
path: rsq.path,
sql: rsq.sql.Clone(),
path: rsq.path,
unique: rsq.unique,
}
}