Skip to content

Commit

Permalink
chore: my head hurts after slamming it through my desk
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyFuller committed Aug 27, 2024
1 parent 5505397 commit 2c6c40d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions components/2016/legacyMenuData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ legacyMenuDataRouter.get(
"/Statistics",
// @ts-expect-error Has jwt props.
(req: RequestWithJwt, res) => {
console.time("stats")
const data: StatisticsData = {
DifficultyLevelData: [
{
Expand Down Expand Up @@ -171,13 +172,10 @@ legacyMenuDataRouter.get(
"mission",
"normal",
),
...{
HideProgression:
subLocation.Properties.ProgressionKey !==
subLocation.Id ||
parentLocation.Id ===
"LOCATION_PARENT_ICA_FACILITY",
},
HideProgression:
subLocation.Properties.ProgressionKey !==
subLocation.Id ||
parentLocation.Id === "LOCATION_PARENT_ICA_FACILITY",
},
ChallengeCompletion:
controller.challengeService.countTotalNCompletedChallenges(
Expand Down Expand Up @@ -250,6 +248,7 @@ legacyMenuDataRouter.get(
template: getConfig("LegacyStatisticsTemplate", false),
data,
})
console.timeEnd("stats")
},
)

Expand Down

0 comments on commit 2c6c40d

Please sign in to comment.