~jae/neos-metrics-exporter

2a5251a627fc6222f66286a217b6705b93a42502 — Jae Salokettu (J4) 7 months ago 0183b15
neosApiClient: dirty fix for comma when multiple users specified
1 files changed, 1 insertions(+), 1 deletions(-)

M src/utils/neosApiClient.ts
M src/utils/neosApiClient.ts => src/utils/neosApiClient.ts +1 -1
@@ 41,5 41,5 @@ export const generatePrometheusString = async (): Promise<string> => {
        return `player_count{label="total"} ${totalPlayers}`;
    }

    return `${fullPrometheusString}\nplayer_count{label="total"} ${totalPlayers}`;
    return `${fullPrometheusString}\nplayer_count{label="total"} ${totalPlayers}`.replaceAll(',', '');
}