mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-10-02 16:20:36 -05:00
Get weapons from DB
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}),
|
||||
|
||||
@@ -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),
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user