Update userRepository.js
This commit is contained in:
parent
8e0a1ab673
commit
7018e8c497
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user