reactions SSE!
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user