reactions, match sse, etc

This commit is contained in:
yohlo
2025-09-19 14:08:36 -05:00
parent 602e6e3473
commit f99d6efaf9
20 changed files with 474 additions and 100 deletions

View File

@@ -1,3 +1,4 @@
import { Reaction } from "@/features/matches/server";
import { Match } from "@/features/matches/types";
import { Player, PlayerInfo } from "@/features/players/types";
import { Team, TeamInfo } from "@/features/teams/types";
@@ -149,3 +150,12 @@ export function transformTournament(record: any): Tournament {
matches
};
}
export function transformReaction(record: any) {
return {
id: record.id,
emoji: record.emoji,
player: transformPlayerInfo(record.expand.player),
match: record.match
};
}