Update userService.js

This commit is contained in:
Gilles Lazures 2026-01-23 21:42:18 +01:00
parent f9270c1f9c
commit 65f2f26325

View File

@ -21,7 +21,7 @@ async function getSkins(uuid) {
code: 200,
data: rawSkins.map(r => ({
id: r.textureUuid,
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
state: parseInt(r.active) === 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: r.active === 1 ? "ACTIVE" : "INACTIVE",
state: parseInt(r.active) === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
alias: r.alias || "LentiaCustomCape"
}))