Browse Source

fix level bug

master
Andrey Kovalev 3 years ago
parent
commit
9023705ae8
Signed by: Russia9
GPG Key ID: EC3AA65373CA51DC
  1. 1
      pkg/storage/mongodb/user.go

1
pkg/storage/mongodb/user.go

@ -38,6 +38,7 @@ func (r *userRepo) Store(ctx context.Context, object *domain.User) error {
// Get old guild if empty // Get old guild if empty
if object.Guild == "" { if object.Guild == "" {
object.Guild = old.Guild object.Guild = old.Guild
object.Level = old.Level
} }
// Set old values // Set old values

Loading…
Cancel
Save