Update userRepository.js

This commit is contained in:
Gilles Lazures 2026-01-23 21:29:37 +01:00
parent e089957db7
commit 8e0a1ab673

View File

@ -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 = ?