diff --git a/repositories/userRepository.js b/repositories/userRepository.js index 4379101..a2b258b 100644 --- a/repositories/userRepository.js +++ b/repositories/userRepository.js @@ -8,7 +8,7 @@ async function getSkins(uuid) { const sql = ` SELECT t.hash, t.url, ps.variant, ps.isSelected FROM playersSkins ps - JOIN textures t ON ps.skinHash = t.hash + JOIN textures t ON ps.assetHash = t.hash WHERE ps.playerUuid = ? ` const rows = await database.query(sql, [uuid]) @@ -23,7 +23,7 @@ async function getCapes(uuid) { const sql = ` SELECT t.hash, t.url, t.alias, pc.isSelected FROM playersCapes pc - JOIN textures t ON pc.capeHash = t.hash + JOIN textures t ON pc.assetHash = t.hash WHERE pc.playerUuid = ? ` const rows = await database.query(sql, [uuid])