Update userRepository.js
This commit is contained in:
parent
b4ae5fa4d9
commit
cc8e581cbe
@ -6,8 +6,8 @@ const { DefaultError } = require("../errors/errors")
|
|||||||
async function getSkins(uuid) {
|
async function getSkins(uuid) {
|
||||||
try {
|
try {
|
||||||
const sql = `
|
const sql = `
|
||||||
SELECT t.hash, t.url, ps.variant, ps.isSelected
|
SELECT t.uuid as textureUuid, t.hash, t.url, ps.variant, ps.isSelected
|
||||||
FROM playersSkins ps
|
FROM playerSkins ps
|
||||||
JOIN textures t ON ps.assetHash = t.hash
|
JOIN textures t ON ps.assetHash = t.hash
|
||||||
WHERE ps.playerUuid = ?
|
WHERE ps.playerUuid = ?
|
||||||
`
|
`
|
||||||
@ -21,8 +21,8 @@ async function getSkins(uuid) {
|
|||||||
async function getCapes(uuid) {
|
async function getCapes(uuid) {
|
||||||
try {
|
try {
|
||||||
const sql = `
|
const sql = `
|
||||||
SELECT t.hash, t.url, t.alias, pc.isSelected
|
SELECT t.uuid as textureUuid, t.hash, t.url, t.alias, pc.isSelected
|
||||||
FROM playersCapes pc
|
FROM playerCapes pc
|
||||||
JOIN textures t ON pc.assetHash = t.hash
|
JOIN textures t ON pc.assetHash = t.hash
|
||||||
WHERE pc.playerUuid = ?
|
WHERE pc.playerUuid = ?
|
||||||
`
|
`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user