Support temporary start.gg players until tournament end

This commit is contained in:
Pandipipas
2026-02-16 01:10:24 +01:00
parent 4e214a573a
commit 15ef0023ef
2 changed files with 112 additions and 0 deletions
+3
View File
@@ -27,6 +27,7 @@ interface RecentTournament {
name: string;
slug: string;
startAt: number | null;
endAt: number | null;
}
interface ImportedPlayer {
@@ -413,6 +414,7 @@ nodecg.listenFor('startgg:fetchRecentTournaments', async (payload: unknown, ack)
name
slug
startAt
endAt
}
}
}
@@ -432,6 +434,7 @@ nodecg.listenFor('startgg:fetchRecentTournaments', async (payload: unknown, ack)
name: item.name,
slug: item.slug,
startAt: item.startAt,
endAt: item.endAt,
})) ?? [];
sendAck(ack, null, tournaments);