From cc8e581cbe761e47d7b4efb0ec620e3ec2f95bf2 Mon Sep 17 00:00:00 2001 From: azures04 Date: Fri, 23 Jan 2026 21:38:21 +0100 Subject: [PATCH] Update userRepository.js --- repositories/userRepository.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repositories/userRepository.js b/repositories/userRepository.js index a2b258b..b6b3113 100644 --- a/repositories/userRepository.js +++ b/repositories/userRepository.js @@ -6,8 +6,8 @@ const { DefaultError } = require("../errors/errors") async function getSkins(uuid) { try { const sql = ` - SELECT t.hash, t.url, ps.variant, ps.isSelected - FROM playersSkins ps + SELECT t.uuid as textureUuid, t.hash, t.url, ps.variant, ps.isSelected + FROM playerSkins ps JOIN textures t ON ps.assetHash = t.hash WHERE ps.playerUuid = ? ` @@ -21,8 +21,8 @@ async function getSkins(uuid) { async function getCapes(uuid) { try { const sql = ` - SELECT t.hash, t.url, t.alias, pc.isSelected - FROM playersCapes pc + SELECT t.uuid as textureUuid, t.hash, t.url, t.alias, pc.isSelected + FROM playerCapes pc JOIN textures t ON pc.assetHash = t.hash WHERE pc.playerUuid = ? `