diff --git a/ems-core/package.json b/ems-core/package.json index 372b695..95e3d8f 100644 --- a/ems-core/package.json +++ b/ems-core/package.json @@ -4,7 +4,7 @@ "private": true, "main": "build/electron.js", "dependencies": { - "@the-orange-alliance/lib-ems": "^0.7.17", + "@the-orange-alliance/lib-ems": "^0.7.19", "axios": "^0.19.0", "dotenv": "^8.0.0", "local-ipv4-address": "0.0.2", diff --git a/ems-core/src/managers/FGCUploadManager.ts b/ems-core/src/managers/FGCUploadManager.ts index 559cb5a..1dfdd59 100644 --- a/ems-core/src/managers/FGCUploadManager.ts +++ b/ems-core/src/managers/FGCUploadManager.ts @@ -67,7 +67,8 @@ class FGCUploadedManager { public postMatchSchedule(eventKey: string, matches: Match[]): Promise { return new Promise((resolve, reject) => { - FGCProvider.deleteMatchData(eventKey, matches[0].tournamentLevel).then(() => { + const tournamentKey: string = matches[0].matchKey.split("-")[3].substring(0, 2); + FGCProvider.deleteMatchData(eventKey, matches[0].tournamentLevel, matches[0].tournamentLevel > Match.QUALIFICATION_LEVEL ? tournamentKey : undefined).then(() => { setTimeout(() => { const fgcMatches: Match[] = matches.map((m: Match) => m); const fgcDetails: MatchDetails[] = matches.map((m: Match) => new MatchDetails().fromJSON({match_key: m.matchKey, match_detail_key: m.matchDetailKey})); diff --git a/ems-core/src/views/event-manager/views/EventAdvancement.tsx b/ems-core/src/views/event-manager/views/EventAdvancement.tsx index 99f264b..0a77ae3 100644 --- a/ems-core/src/views/event-manager/views/EventAdvancement.tsx +++ b/ems-core/src/views/event-manager/views/EventAdvancement.tsx @@ -234,7 +234,7 @@ function mapStateToProps({configState, internalState}: IApplicationState) { return { event: configState.event, eventConfig: configState.eventConfiguration, - team: internalState.teamList, + teams: internalState.teamList, toaConfig: configState.toaConfig, playoffsSchedule: configState.playoffsSchedule, playoffsMatches: internalState.playoffsMatches