Skip to content

Commit

Permalink
Fix bug with specifying team colors for a challenge.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Feb 20, 2020
1 parent fd72c6b commit 3f1d992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/challenge.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Challenge {

let data;
try {
data = await Db.create(challengingTeam, challengedTeam, gameType, !!adminCreated, adminCreated ? challengingTeam : void 0, teamSize, startNow, blueTeam ? blueTeam.id : void 0);
data = await Db.create(challengingTeam, challengedTeam, gameType, !!adminCreated, adminCreated ? challengingTeam : void 0, teamSize, startNow, blueTeam);
} catch (err) {
throw new Exception("There was a database error creating a challenge.", err);
}
Expand Down Expand Up @@ -1422,7 +1422,7 @@ class Challenge {
team,
{
gameType: this.details.gameType,
adminCreated: false,
adminCreated: false,
teamSize: this.details.teamSize,
startNow: true,
blueTeam: this.details.blueTeam
Expand Down

0 comments on commit 3f1d992

Please sign in to comment.