From 8e0a1ab673d2c962b8f3e6c530c2e434a8038b3c Mon Sep 17 00:00:00 2001 From: azures04 Date: Fri, 23 Jan 2026 21:29:37 +0100 Subject: [PATCH] Update userRepository.js --- repositories/userRepository.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = ?