Update userService.js

This commit is contained in:
Gilles Lazures 2026-01-23 21:48:45 +01:00
parent 65f2f26325
commit c1dbfc58aa

View File

@ -21,7 +21,7 @@ async function getSkins(uuid) {
code: 200,
data: rawSkins.map(r => ({
id: r.textureUuid,
state: parseInt(r.active) === 1 ? "ACTIVE" : "INACTIVE",
state: r.isSelected === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
variant: r.variant || "CLASSIC"
}))
@ -39,7 +39,7 @@ async function getCapes(uuid) {
code: 200,
data: rawCapes.map(r => ({
id: r.textureUuid,
state: parseInt(r.active) === 1 ? "ACTIVE" : "INACTIVE",
state: r.isSelected === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
alias: r.alias || "LentiaCustomCape"
}))