Skip to content
Snippets Groups Projects
Commit 96005c3c authored by Tobias Ingebrigt Ørstad's avatar Tobias Ingebrigt Ørstad
Browse files

Merge branch '95-backend-cleanup' into 'dev'

Fixes

Closes #95

See merge request !98
parents b86ce93d 9b9cc6a8
No related branches found
No related tags found
1 merge request!98Fixes
...@@ -526,8 +526,8 @@ function roundcheck(client, tournament, roundid) { ...@@ -526,8 +526,8 @@ function roundcheck(client, tournament, roundid) {
tourny = result.value; tourny = result.value;
const game = const game =
tourny.games[ tourny.games[
(tourny.currentRound % tourny.games.length) - (tourny.currentRound - 1) %
1 tourny.games.length
]; ];
const date = new Date(); const date = new Date();
date.setTime( date.setTime(
......
...@@ -510,10 +510,10 @@ function roundcheck(client, tournament) { ...@@ -510,10 +510,10 @@ function roundcheck(client, tournament) {
if (result.value) { if (result.value) {
// If the tournament has more rounds left // If the tournament has more rounds left
tourny = result.value; tourny = result.value;
const game = // Finds the next game of the round const game =
tourny.games[ tourny.games[
(tourny.currentRound % tourny.games.length) - (tourny.currentRound - 1) %
1 tourny.games.length
]; ];
const date = new Date(); const date = new Date();
date.setTime( date.setTime(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment