mirror of
https://github.com/elyby/chrly.git
synced 2024-11-22 21:23:17 +05:30
Quick fix for production data inconsistency
This commit is contained in:
parent
fa62d45d00
commit
ad31fdb709
@ -73,6 +73,12 @@ func findByUsername(ctx context.Context, conn radix.Conn, username string) (*mod
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// Some old data causing issues in the production.
|
||||
// TODO: remove after investigation will be finished
|
||||
if skin.Uuid == "" {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
skin.OldUsername = skin.Username
|
||||
|
||||
return skin, nil
|
||||
|
Loading…
Reference in New Issue
Block a user