From cab4835c2c1376fbb6c4a2f33e76cf1d2dc07814 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Thu, 22 Dec 2022 14:49:56 +0000 Subject: [PATCH] fix: only care about supported games in global activity --- server/src/server/router/api/v1/activity/router.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/server/router/api/v1/activity/router.ts b/server/src/server/router/api/v1/activity/router.ts index 19b4c2062..7376d0a15 100644 --- a/server/src/server/router/api/v1/activity/router.ts +++ b/server/src/server/router/api/v1/activity/router.ts @@ -1,5 +1,6 @@ import { Router } from "express"; import { GetRecentActivityForMultipleGames } from "lib/activity/activity"; +import { ServerConfig, TachiConfig } from "lib/setup/config"; import { GetGameConfig } from "tachi-common"; import { allSupportedGames } from "tachi-common/config/static-config"; @@ -27,7 +28,7 @@ router.get("/", async (req, res) => { const gpts = []; - for (const game of allSupportedGames) { + for (const game of TachiConfig.GAMES) { const playtypes = GetGameConfig(game).validPlaytypes; for (const playtype of playtypes) {