fix: only care about supported games in global activity

This commit is contained in:
zkldi
2022-12-22 14:50:07 +00:00
parent 1e83d6426f
commit cab4835c2c
@@ -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) {