Skip to content

Commit

Permalink
Quick fix for production data inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch committed Dec 22, 2023
1 parent fa62d45 commit ad31fdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions db/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad31fdb

Please sign in to comment.