From 80921087319411cf9b5e0f9f2d7d9747d29ef8e2 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 23 Aug 2026 07:14:04 +0300 Subject: [PATCH] Comments --- app/features/chat/ChatRoomResolver.server.ts | 2 ++ app/features/tournament-bracket/BracketRepository.server.ts | 1 + 2 files changed, 3 insertions(+) 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();