diff --git a/src/main/java/com/uniovi/entities/Associations.java b/src/main/java/com/uniovi/entities/Associations.java index 28c876cd..1d1db3cc 100644 --- a/src/main/java/com/uniovi/entities/Associations.java +++ b/src/main/java/com/uniovi/entities/Associations.java @@ -34,7 +34,7 @@ public static class PlayerApiKey { * @param apiKey The API key */ public static void addApiKey(Player player, ApiKey apiKey) { - apiKey.setUser(player); + apiKey.setPlayer(player); player.setApiKey(apiKey); } @@ -45,7 +45,7 @@ public static void addApiKey(Player player, ApiKey apiKey) { * @param apiKey The API key */ public static void removeApiKey(Player player, ApiKey apiKey) { - apiKey.setUser(null); + apiKey.setPlayer(null); player.setApiKey(null); } }