aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-04-09 19:55:00 -0500
committermat <github@matdoes.dev>2022-04-09 19:55:00 -0500
commit066d722f19a4309f473ff72c64461a6846d3ab5a (patch)
tree0111dcb5524dea335f45fb5776db7ead4a73ab12 /src/hypixelCached.ts
parent6d08f7f8c91b31e27ff44162b7837751405ec67d (diff)
downloadskyblock-api-066d722f19a4309f473ff72c64461a6846d3ab5a.tar.gz
skyblock-api-066d722f19a4309f473ff72c64461a6846d3ab5a.tar.bz2
skyblock-api-066d722f19a4309f473ff72c64461a6846d3ab5a.zip
include profile mode in /player/[player]
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index a2600f2..e8195fb 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -248,7 +248,8 @@ export async function fetchSkyblockProfiles(playerUuid: string): Promise<CleanPr
rank: m.rank,
left: m.left
}
- })
+ }),
+ mode: profile.mode
}
basicProfiles.push(basicProfile)
}
@@ -381,7 +382,8 @@ export async function fetchBasicProfileFromUuid(profileUuid: string): Promise<Cl
firstJoin: m.firstJoin,
rank: m.rank,
})),
- name: profile.name
+ name: profile.name,
+ mode: profile.mode
}
}
// TODO: cache this