mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-28 06:10:01 -05:00
Refactor tournament data loading (#3298)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user