mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-03 20:38:17 +03:00
fix: only care about supported games in global activity
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user