From 03a0ad487a0a6f89d88b36e088702710d8c533db Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Thu, 12 Jan 2023 16:42:13 +1100 Subject: [PATCH] Ew, just ew. --- src/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index edd7fd0..f7812b8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,8 +67,7 @@ setInterval(async()=>{ // Connect to DB to retrieve the Gameserver info to fetch data. MPDB.sync(); - const newServerId = client.config.mainServer.id - const ServerURL = MPDB.findOne({where: {serverId: newServerId}}) + const ServerURL = MPDB.findOne({where: {serverId: client.config.mainServer.id}}) const DBURL = (await ServerURL).ip const DBCode = (await ServerURL).code const verifyURL = DBURL.match(/http/);