This commit is contained in:
Kalle
2026-08-23 07:14:04 +03:00
parent c62210bc57
commit 8092108731
2 changed files with 3 additions and 0 deletions

View File

@@ -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;

View File

@@ -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<number, number>();