mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +02:00
fix: clan name and icon now show up with multi-tank
This commit is contained in:
1 parent
038374e5aa
commit
3e956b34c1
2 files changed
+2
-3
No files matched your search
@@ -35,7 +35,7 @@ export default async function fullStats<Type extends StatType>(
|
||||
let nameDiscriminator: string | undefined;
|
||||
let image: string | undefined;
|
||||
|
||||
if (type === 'player') {
|
||||
if (type === 'player' || type === 'multi-tank') {
|
||||
const clan = (
|
||||
await getWargamingResponse<PlayerClanData>(
|
||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${secrets.WARGAMING_APPLICATION_ID}&account_id=${id}&extra=clan`,
|
||||
@@ -49,7 +49,6 @@ export default async function fullStats<Type extends StatType>(
|
||||
} else if (type === 'tank') {
|
||||
nameDiscriminator = `(${await resolveTankName(filters as number)})`;
|
||||
image = (await tankopedia)[filters as number]?.images.normal;
|
||||
} else {
|
||||
}
|
||||
|
||||
const { diffed, order } = await getDiffedTankStats(server, id, start, end);
|
||||
|
||||
@@ -45,7 +45,7 @@ export default async function stats<Type extends StatType>(
|
||||
let nameDiscriminator: string | undefined;
|
||||
let image: string | undefined;
|
||||
|
||||
if (type === 'player') {
|
||||
if (type === 'player' || type === 'multi-tank') {
|
||||
const clan = (
|
||||
await getWargamingResponse<PlayerClanData>(
|
||||
`https://api.wotblitz.${server}/wotb/clans/accountinfo/?application_id=${secrets.WARGAMING_APPLICATION_ID}&account_id=${id}&extra=clan`,
|
||||
|
||||
Reference in new issue
Block a user