Skip to content

Commit b40a027

Browse files
committed
Make Breakdowns Public
1 parent cda960f commit b40a027

1 file changed

Lines changed: 9 additions & 15 deletions

File tree

src/model/Match.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,10 @@ export class Match {
288288
if (this.isRegistered) {
289289
DatabaseConnector.completeMatch(this);
290290

291-
// Supporter Early Access, will be public in future
292-
if (this.orgIsSupporter) {
293-
// Wait 5 seconds to ensure API is ready
294-
setTimeout(() => {
295-
DatabaseConnector.statsFetchStats(this.matchId);
296-
}, 15000);
297-
}
291+
// Wait 15 seconds to ensure API is ready
292+
setTimeout(() => {
293+
DatabaseConnector.statsFetchStats(this.matchId);
294+
}, 15000);
298295
}
299296

300297
return;
@@ -310,14 +307,11 @@ export class Match {
310307
await DatabaseConnector.registerMatch(this);
311308
this.isRegistered = true;
312309

313-
// Supporter Early Access, will be public in future
314-
if (this.orgIsSupporter) {
315-
await DatabaseConnector.statsAddMatch(this.groupCode, this.matchId);
316-
await DatabaseConnector.statsUpdateMatchRegion(
317-
this.matchId,
318-
this.teams[0].getFirstPlayerId(),
319-
);
320-
}
310+
await DatabaseConnector.statsAddMatch(this.groupCode, this.matchId);
311+
await DatabaseConnector.statsUpdateMatchRegion(
312+
this.matchId,
313+
this.teams[0].getFirstPlayerId(),
314+
);
321315
}
322316

323317
break;

0 commit comments

Comments
 (0)