diff --git a/components/2016/legacyMenuData.ts b/components/2016/legacyMenuData.ts index d5bdcc5d..c68329ce 100644 --- a/components/2016/legacyMenuData.ts +++ b/components/2016/legacyMenuData.ts @@ -99,6 +99,7 @@ legacyMenuDataRouter.get( "/Statistics", // @ts-expect-error Has jwt props. (req: RequestWithJwt, res) => { + console.time("stats") const data: StatisticsData = { DifficultyLevelData: [ { @@ -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( @@ -250,6 +248,7 @@ legacyMenuDataRouter.get( template: getConfig("LegacyStatisticsTemplate", false), data, }) + console.timeEnd("stats") }, )