From 77f787b65980a4ef9cd30eebfba89efa715c4f7c Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 13 Apr 2024 17:30:08 +0100 Subject: [PATCH] don't return username to uuid id --- src/main/java/cc/fascinated/model/cache/CachedPlayerName.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/cc/fascinated/model/cache/CachedPlayerName.java b/src/main/java/cc/fascinated/model/cache/CachedPlayerName.java index 5cf1ba7..929f20e 100644 --- a/src/main/java/cc/fascinated/model/cache/CachedPlayerName.java +++ b/src/main/java/cc/fascinated/model/cache/CachedPlayerName.java @@ -1,5 +1,6 @@ package cc.fascinated.model.cache; +import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Getter; import lombok.ToString; import org.springframework.data.annotation.Id; @@ -17,6 +18,7 @@ public final class CachedPlayerName extends CachedResponse { /** * The id of the player. */ + @JsonIgnore @Id private final String id; /**