Skip to content

Commit

Permalink
match note
Browse files Browse the repository at this point in the history
  • Loading branch information
joypan1 committed Mar 22, 2024
1 parent 59c1763 commit 2b214f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/matchinfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ async function submitMatchData(rank, teamnumber, globalid, matchnumber, count1,
};

//Joy - you were on the right track here - but there can be multiple teams in the same match? Or do they each get their own match number?
// Yep, I had about the same realization earlier today (that there are duplicate match numbers granted that there are 6 teams per match) but wasn't sure how to implement it. Thank you so much for correcting it!!
const existingMatch = await db.matches.where('matchnumber').equals(matchnumber).and(match => match.globalid === parseInt(globalid, 10)).first();

//if the team already exists then add match information
Expand Down

0 comments on commit 2b214f1

Please sign in to comment.