Quick fix for production data inconsistency

This commit is contained in:
ErickSkrauch 2023-12-22 18:45:38 +01:00
parent fa62d45d00
commit ad31fdb709
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -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