Skip to content

Commit c084bfe

Browse files
Techbot121Meta Construct
authored andcommitted
instead of hardcoding ids, get them from the config
1 parent d6df493 commit c084bfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/webapp/api/gamemode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { WebApp } from "@/app/services/webapp/index.js";
22
import servers from "@/config/gamebridge.servers.json" with { type: "json" };
33

4-
const HOSTING_IDS = { 3: true, 1: true };
4+
const HOSTING_IDS = servers.filter(s => s.ssh !== undefined).map(s => s.id);
55

66
export default async (webApp: WebApp): Promise<void> => {
77
webApp.app.get("/gamemode/:id", async (req, res) => {

0 commit comments

Comments
 (0)