add country to score point
Some checks failed
deploy / deploy (push) Failing after 34s

This commit is contained in:
Lee 2023-10-30 15:08:56 +00:00
parent 12000f7de8
commit 1520340bf4

@ -62,6 +62,7 @@ async function connectWebsocket() {
const { const {
id, id,
country,
hmd, hmd,
baseScore, baseScore,
missedNotes, missedNotes,
@ -99,6 +100,7 @@ async function connectWebsocket() {
const point = new Point("scoresaber") const point = new Point("scoresaber")
.tag("type", "score_count") .tag("type", "score_count")
.intField("value", totalScores) .intField("value", totalScores)
.stringField("country", country)
.timestamp(new Date()); .timestamp(new Date());
InfluxWriteAPI.writePoint(point); InfluxWriteAPI.writePoint(point);
} }