This commit is contained in:
Aleksander Wilczyński 2024-08-18 03:09:35 +02:00
parent bcf922be48
commit 2f9fb7e941
Signed by untrusted user: alekswilc
GPG Key ID: D4464A248E5F27FE

View File

@ -80,9 +80,10 @@ 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(x => ({data: [], result: false})) as ApiResponse<Server>)
.data?.filter(x => x.ServerName.includes('Polski')) ?? []; // no plans to support other servers .data?.filter(x => x.ServerName.includes('Polski')) ?? []; // no plans to support other servers
// TODO: maybe node:worker_threads? // TODO: maybe node:worker_threads?
// TODO: check performance // TODO: check performance