Browse Source

fix level bug

master
Andrey Kovalev 2 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 { @@ -38,6 +38,7 @@ func (r *userRepo) Store(ctx context.Context, object *domain.User) error {
// Get old guild if empty
if object.Guild == "" {
object.Guild = old.Guild
object.Level = old.Level
}
// Set old values

Loading…
Cancel
Save