forked from simrail/simrail.pro
fix(backend): fix
This commit is contained in:
parent
6c7b2a70eb
commit
c8d5d4afc8
@ -288,7 +288,7 @@ export class SimrailClient extends EventEmitter
|
|||||||
|
|
||||||
private async update()
|
private async update()
|
||||||
{
|
{
|
||||||
const servers = (await fetch("https://panel.simrail.eu:8084/servers-open").then(x => x.json()).catch(x => ({ data: [], result: false })) as ApiResponse<Server>)
|
const servers = (await fetch("https://panel.simrail.eu:8084/servers-open").then(x => x.json()).catch(() => ({ data: [], result: false })) as ApiResponse<Server>)
|
||||||
.data?.filter(x => x.ServerName.includes("Polski")) ?? []; // TODO: remove this in v3
|
.data?.filter(x => x.ServerName.includes("Polski")) ?? []; // TODO: remove this in v3
|
||||||
|
|
||||||
if (!servers.length)
|
if (!servers.length)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user