diff --git a/repositories/userRepository.js b/repositories/userRepository.js index c42881d..4379101 100644 --- a/repositories/userRepository.js +++ b/repositories/userRepository.js @@ -6,7 +6,7 @@ const { DefaultError } = require("../errors/errors") async function getSkins(uuid) { try { const sql = ` - SELECT t.hash, t.url, ps.variant, ps.active + SELECT t.hash, t.url, ps.variant, ps.isSelected FROM playersSkins ps JOIN textures t ON ps.skinHash = t.hash WHERE ps.playerUuid = ? @@ -21,7 +21,7 @@ async function getSkins(uuid) { async function getCapes(uuid) { try { const sql = ` - SELECT t.hash, t.url, t.alias, pc.active + SELECT t.hash, t.url, t.alias, pc.isSelected FROM playersCapes pc JOIN textures t ON pc.capeHash = t.hash WHERE pc.playerUuid = ?