Refactor tournament data loading (#3298)

This commit is contained in:
Kalle
2026-08-04 22:05:49 +03:00
committed by GitHub
parent 45caf0e2c2
commit b45ecde4cc
116 changed files with 4444 additions and 28069 deletions

View File

@@ -27,7 +27,12 @@ function logSkalpError(action: string) {
type PartialChatMessage = Pick<
ChatMessage,
"type" | "context" | "room" | "revalidateOnly" | "authorUserId"
| "type"
| "context"
| "room"
| "revalidateOnly"
| "revalidateScope"
| "authorUserId"
>;
interface ChatSystemMessageService {
send: (msg: PartialChatMessage | PartialChatMessage[]) => undefined;
@@ -61,6 +66,7 @@ export const send: ChatSystemMessageService["send"] = (partialMsg) => {
context: partialMsg.context,
type: partialMsg.type,
revalidateOnly: partialMsg.revalidateOnly,
revalidateScope: partialMsg.revalidateScope,
authorUserId: partialMsg.authorUserId ?? actorIdOrNullSafe() ?? undefined,
};
});