diff --git a/app/features/chat/ChatRoomResolver.server.ts b/app/features/chat/ChatRoomResolver.server.ts index d554e7cb9..2552653ca 100644 --- a/app/features/chat/ChatRoomResolver.server.ts +++ b/app/features/chat/ChatRoomResolver.server.ts @@ -16,6 +16,8 @@ import { } from "~/utils/urls"; import type { ChatRoomType } from "./chat-types"; +// xxx: direct DB calls here, should not be a thing, the logic also seems quite heavy, needed? + export interface ResolvedRoom { roomId: number; type: ChatRoomType; diff --git a/app/features/tournament-bracket/BracketRepository.server.ts b/app/features/tournament-bracket/BracketRepository.server.ts index 7300c1433..8fb59295c 100644 --- a/app/features/tournament-bracket/BracketRepository.server.ts +++ b/app/features/tournament-bracket/BracketRepository.server.ts @@ -207,6 +207,7 @@ export function insertBracket(args: { const statuses = matchStatuses(args.bracket); + // xxx: check if this is true // only matches that can already be played get a chat room; the rest get // theirs as they start (see syncStartedAt) const chatRoomIdByMatchId = new Map();