From ad31fdb7096373b84e6d688853f311c8f49841b4 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 22 Dec 2023 18:45:38 +0100 Subject: [PATCH] Quick fix for production data inconsistency --- db/redis/redis.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db/redis/redis.go b/db/redis/redis.go index 235e84f..e801ecf 100644 --- a/db/redis/redis.go +++ b/db/redis/redis.go @@ -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