reactions SSE!

This commit is contained in:
yohlo
2025-09-19 20:53:05 -05:00
parent f99d6efaf9
commit 5e20b94a1f
14 changed files with 173 additions and 99 deletions

View File

@@ -13,4 +13,9 @@ export type MatchEvent = {
tournamentId: string;
}
export type ServerEvent = TestEvent | MatchEvent;
export type ReactionEvent = {
type: "reaction";
matchId: string;
}
export type ServerEvent = TestEvent | MatchEvent | ReactionEvent;

View File

@@ -80,8 +80,6 @@ export function createPlayersService(pb: PocketBase) {
},
async getPlayerMatches(playerId: string): Promise<Match[]> {
console.log('----------------')
console.log(playerId)
const player = await pb.collection("players").getOne(playerId.trim(), {
expand: "teams",
});