Update userService.js

This commit is contained in:
Gilles Lazures 2026-01-23 21:40:06 +01:00
parent 4a0fcf65f3
commit 6f3231aee7

View File

@ -19,14 +19,12 @@ async function getSkins(uuid) {
return {
code: 200,
data: {
skins: rawSkins.map(r => ({
id: r.hash,
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
variant: r.variant || "CLASSIC"
}))
}
data: rawSkins.map(r => ({
id: r.hash,
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
variant: r.variant || "CLASSIC"
}))
}
} catch (error) {
throw error
@ -39,14 +37,12 @@ async function getCapes(uuid) {
return {
code: 200,
data: {
capes: rawCapes.map(r => ({
id: r.hash,
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
alias: r.alias || "LentiaCustomCape"
}))
}
data: rawCapes.map(r => ({
id: r.hash,
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
url: r.url,
alias: r.alias || "LentiaCustomCape"
}))
}
} catch (error) {
throw error