added roundstats with eco info, switched to avatar hash
This commit is contained in:
@@ -49,23 +49,23 @@ func (pu *PlayerUpdate) ClearName() *PlayerUpdate {
|
||||
return pu
|
||||
}
|
||||
|
||||
// SetAvatarURL sets the "avatar_url" field.
|
||||
func (pu *PlayerUpdate) SetAvatarURL(s string) *PlayerUpdate {
|
||||
pu.mutation.SetAvatarURL(s)
|
||||
// SetAvatar sets the "avatar" field.
|
||||
func (pu *PlayerUpdate) SetAvatar(s string) *PlayerUpdate {
|
||||
pu.mutation.SetAvatar(s)
|
||||
return pu
|
||||
}
|
||||
|
||||
// SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
|
||||
func (pu *PlayerUpdate) SetNillableAvatarURL(s *string) *PlayerUpdate {
|
||||
// SetNillableAvatar sets the "avatar" field if the given value is not nil.
|
||||
func (pu *PlayerUpdate) SetNillableAvatar(s *string) *PlayerUpdate {
|
||||
if s != nil {
|
||||
pu.SetAvatarURL(*s)
|
||||
pu.SetAvatar(*s)
|
||||
}
|
||||
return pu
|
||||
}
|
||||
|
||||
// ClearAvatarURL clears the value of the "avatar_url" field.
|
||||
func (pu *PlayerUpdate) ClearAvatarURL() *PlayerUpdate {
|
||||
pu.mutation.ClearAvatarURL()
|
||||
// ClearAvatar clears the value of the "avatar" field.
|
||||
func (pu *PlayerUpdate) ClearAvatar() *PlayerUpdate {
|
||||
pu.mutation.ClearAvatar()
|
||||
return pu
|
||||
}
|
||||
|
||||
@@ -406,17 +406,17 @@ func (pu *PlayerUpdate) sqlSave(ctx context.Context) (n int, err error) {
|
||||
Column: player.FieldName,
|
||||
})
|
||||
}
|
||||
if value, ok := pu.mutation.AvatarURL(); ok {
|
||||
if value, ok := pu.mutation.Avatar(); ok {
|
||||
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
Value: value,
|
||||
Column: player.FieldAvatarURL,
|
||||
Column: player.FieldAvatar,
|
||||
})
|
||||
}
|
||||
if pu.mutation.AvatarURLCleared() {
|
||||
if pu.mutation.AvatarCleared() {
|
||||
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
Column: player.FieldAvatarURL,
|
||||
Column: player.FieldAvatar,
|
||||
})
|
||||
}
|
||||
if value, ok := pu.mutation.VanityURL(); ok {
|
||||
@@ -678,23 +678,23 @@ func (puo *PlayerUpdateOne) ClearName() *PlayerUpdateOne {
|
||||
return puo
|
||||
}
|
||||
|
||||
// SetAvatarURL sets the "avatar_url" field.
|
||||
func (puo *PlayerUpdateOne) SetAvatarURL(s string) *PlayerUpdateOne {
|
||||
puo.mutation.SetAvatarURL(s)
|
||||
// SetAvatar sets the "avatar" field.
|
||||
func (puo *PlayerUpdateOne) SetAvatar(s string) *PlayerUpdateOne {
|
||||
puo.mutation.SetAvatar(s)
|
||||
return puo
|
||||
}
|
||||
|
||||
// SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
|
||||
func (puo *PlayerUpdateOne) SetNillableAvatarURL(s *string) *PlayerUpdateOne {
|
||||
// SetNillableAvatar sets the "avatar" field if the given value is not nil.
|
||||
func (puo *PlayerUpdateOne) SetNillableAvatar(s *string) *PlayerUpdateOne {
|
||||
if s != nil {
|
||||
puo.SetAvatarURL(*s)
|
||||
puo.SetAvatar(*s)
|
||||
}
|
||||
return puo
|
||||
}
|
||||
|
||||
// ClearAvatarURL clears the value of the "avatar_url" field.
|
||||
func (puo *PlayerUpdateOne) ClearAvatarURL() *PlayerUpdateOne {
|
||||
puo.mutation.ClearAvatarURL()
|
||||
// ClearAvatar clears the value of the "avatar" field.
|
||||
func (puo *PlayerUpdateOne) ClearAvatar() *PlayerUpdateOne {
|
||||
puo.mutation.ClearAvatar()
|
||||
return puo
|
||||
}
|
||||
|
||||
@@ -1059,17 +1059,17 @@ func (puo *PlayerUpdateOne) sqlSave(ctx context.Context) (_node *Player, err err
|
||||
Column: player.FieldName,
|
||||
})
|
||||
}
|
||||
if value, ok := puo.mutation.AvatarURL(); ok {
|
||||
if value, ok := puo.mutation.Avatar(); ok {
|
||||
_spec.Fields.Set = append(_spec.Fields.Set, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
Value: value,
|
||||
Column: player.FieldAvatarURL,
|
||||
Column: player.FieldAvatar,
|
||||
})
|
||||
}
|
||||
if puo.mutation.AvatarURLCleared() {
|
||||
if puo.mutation.AvatarCleared() {
|
||||
_spec.Fields.Clear = append(_spec.Fields.Clear, &sqlgraph.FieldSpec{
|
||||
Type: field.TypeString,
|
||||
Column: player.FieldAvatarURL,
|
||||
Column: player.FieldAvatar,
|
||||
})
|
||||
}
|
||||
if value, ok := puo.mutation.VanityURL(); ok {
|
||||
|
Reference in New Issue
Block a user