Update userService.js
This commit is contained in:
parent
f9270c1f9c
commit
65f2f26325
@ -21,7 +21,7 @@ async function getSkins(uuid) {
|
|||||||
code: 200,
|
code: 200,
|
||||||
data: rawSkins.map(r => ({
|
data: rawSkins.map(r => ({
|
||||||
id: r.textureUuid,
|
id: r.textureUuid,
|
||||||
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
|
state: parseInt(r.active) === 1 ? "ACTIVE" : "INACTIVE",
|
||||||
url: r.url,
|
url: r.url,
|
||||||
variant: r.variant || "CLASSIC"
|
variant: r.variant || "CLASSIC"
|
||||||
}))
|
}))
|
||||||
@ -39,7 +39,7 @@ async function getCapes(uuid) {
|
|||||||
code: 200,
|
code: 200,
|
||||||
data: rawCapes.map(r => ({
|
data: rawCapes.map(r => ({
|
||||||
id: r.textureUuid,
|
id: r.textureUuid,
|
||||||
state: r.active === 1 ? "ACTIVE" : "INACTIVE",
|
state: parseInt(r.active) === 1 ? "ACTIVE" : "INACTIVE",
|
||||||
url: r.url,
|
url: r.url,
|
||||||
alias: r.alias || "LentiaCustomCape"
|
alias: r.alias || "LentiaCustomCape"
|
||||||
}))
|
}))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user