i think working bracket runner
This commit is contained in:
@@ -27,8 +27,6 @@ export function createMatchesService(pb: PocketBase) {
|
||||
const winnerMatch = result.find(m => (m.home_from_lid === match.lid && !m.home_from_loser) || (m.away_from_lid === match.lid && !m.away_from_loser));
|
||||
const loserMatch = result.find(m => (m.home_from_lid === match.lid && m.home_from_loser) || (m.away_from_lid === match.lid && m.away_from_loser));
|
||||
|
||||
console.log(winnerMatch, loserMatch)
|
||||
|
||||
return {
|
||||
winner: winnerMatch ? transformMatch(winnerMatch) : undefined,
|
||||
loser: loserMatch ? transformMatch(loserMatch) : undefined
|
||||
|
||||
Reference in New Issue
Block a user