mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +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
|
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
|
skin.OldUsername = skin.Username
|
||||||
|
|
||||||
return skin, nil
|
return skin, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user