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

@@ -157,7 +157,7 @@ func (mq *MatchQuery) FirstIDX(ctx context.Context) uint64 {
}
// Only returns a single Match entity found by the query, ensuring it only returns one.
// Returns a *NotSingularError when exactly one Match entity is not found.
// Returns a *NotSingularError when more than one Match entity is found.
// Returns a *NotFoundError when no Match entities are found.
func (mq *MatchQuery) Only(ctx context.Context) (*Match, error) {
nodes, err := mq.Limit(2).All(ctx)
@@ -184,7 +184,7 @@ func (mq *MatchQuery) OnlyX(ctx context.Context) *Match {
}
// OnlyID is like Only, but returns the only Match ID in the query.
// Returns a *NotSingularError when exactly one Match ID is not found.
// Returns a *NotSingularError when more than one Match ID is found.
// Returns a *NotFoundError when no entities are found.
func (mq *MatchQuery) OnlyID(ctx context.Context) (id uint64, err error) {
var ids []uint64
@@ -295,8 +295,9 @@ func (mq *MatchQuery) Clone() *MatchQuery {
withStats: mq.withStats.Clone(),
withPlayers: mq.withPlayers.Clone(),
// clone intermediate query.
sql: mq.sql.Clone(),
path: mq.path,
sql: mq.sql.Clone(),
path: mq.path,
unique: mq.unique,
}
}