diff --git a/services/userService.js b/services/userService.js index 97acaf6..ea3e1ee 100644 --- a/services/userService.js +++ b/services/userService.js @@ -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