Commit 4fe11288 authored by nanahira's avatar nanahira

fix

parent 715fc23a
Pipeline #2297 passed with stages
in 26 seconds
......@@ -90,7 +90,10 @@ async function migrateMatch(match: Match) {
winner_id = newParticipantNameMap.get(winnerName).id;
console.log(`Migrating match ${currentMatchPlayer1Name} vs ${currentMatchPlayer2Name} with winner ${winnerName}.`);
} else {
winner_id = oldMatch.winner_id || 'tie';
winner_id = oldMatch.winner_id;
if (oldMatch.scores_csv === "0-0") {
winner_id = 'tie';
}
console.log(`Migrating match ${currentMatchPlayer1Name} vs ${currentMatchPlayer2Name} with result ${winner_id}.`);
}
const oldPlayerIds = [oldMatch.player1_id, oldMatch.player2_id]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment