reactions, match sse, etc
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user