diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 058787d..abfb2c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: Run unit tests: stage: test - image: &goimage golang:1.18 + image: &goimage golang:1.21 only: refs: - main diff --git a/theme/moth.mjs b/theme/moth.mjs index e59dfcb..dd23081 100644 --- a/theme/moth.mjs +++ b/theme/moth.mjs @@ -480,7 +480,7 @@ class State { * * @yields {Scores} Snapshot at a point in time */ - * ScoreHistory() { + * ScoresHistory() { let scores = new Scores() for (let award of this.PointsLog) { scores.Add(award) @@ -493,7 +493,7 @@ class State { * * @returns {Scores} */ - CurrentScore() { + CurrentScores() { let scores for (scores of this.ScoreHistory()); return scores diff --git a/theme/scoreboard.mjs b/theme/scoreboard.mjs index 5d2e161..e600292 100644 --- a/theme/scoreboard.mjs +++ b/theme/scoreboard.mjs @@ -43,7 +43,7 @@ async function update() { } let frame = 0 - for (let scores of state.ScoreHistory()) { + for (let scores of state.ScoresHistory()) { frame += 1 if ((frame < state.PointsLog.length) && (frame % frameModulo)) { continue