Get weapons from DB

This commit is contained in:
Kalle
2022-03-06 14:59:46 +02:00
parent 1d7f736dee
commit c773d70d23
4 changed files with 212 additions and 32860 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,6 @@ export function addInfoFromOldSendouInk(
const playerInfos = infos[member.discordId];
return {
...member,
weapons: playerInfos?.weapons?.slice(0, 3),
peakXP: type === "SOLO" ? playerInfos?.peakXP : undefined,
peakLP: type === "LEAGUE" ? playerInfos?.peakLP : undefined,
};

View File

@@ -185,6 +185,7 @@ export function otherGroupsForResponse({
discordName: m.user.discordName,
id: m.user.id,
captain: m.captain,
weapons: m.user.weapons,
MMR: skillArrayToMMR(m.user.skill),
};
}),

View File

@@ -272,6 +272,7 @@ export const loader: LoaderFunction = async ({ context }) => {
discordName: m.user.discordName,
id: m.user.id,
captain: m.captain,
weapons: m.user.weapons,
MMR: skillArrayToMMR(m.user.skill),
};
}),