Update userRepository.js

This commit is contained in:
Gilles Lazures 2026-01-23 21:30:41 +01:00
parent 8e0a1ab673
commit 7018e8c497

View File

@ -8,7 +8,7 @@ async function getSkins(uuid) {
const sql = ` const sql = `
SELECT t.hash, t.url, ps.variant, ps.isSelected SELECT t.hash, t.url, ps.variant, ps.isSelected
FROM playersSkins ps FROM playersSkins ps
JOIN textures t ON ps.skinHash = t.hash JOIN textures t ON ps.assetHash = t.hash
WHERE ps.playerUuid = ? WHERE ps.playerUuid = ?
` `
const rows = await database.query(sql, [uuid]) const rows = await database.query(sql, [uuid])
@ -23,7 +23,7 @@ async function getCapes(uuid) {
const sql = ` const sql = `
SELECT t.hash, t.url, t.alias, pc.isSelected SELECT t.hash, t.url, t.alias, pc.isSelected
FROM playersCapes pc FROM playersCapes pc
JOIN textures t ON pc.capeHash = t.hash JOIN textures t ON pc.assetHash = t.hash
WHERE pc.playerUuid = ? WHERE pc.playerUuid = ?
` `
const rows = await database.query(sql, [uuid]) const rows = await database.query(sql, [uuid])