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