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