mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Refresh stream cache when SendouQ match starts
This commit is contained in:
parent
76a38950de
commit
570da9541b
|
|
@ -9,6 +9,7 @@ import {
|
||||||
matchMapList,
|
matchMapList,
|
||||||
} from "~/features/sendouq-match/core/match.server";
|
} from "~/features/sendouq-match/core/match.server";
|
||||||
import * as SQMatchRepository from "~/features/sendouq-match/SQMatchRepository.server";
|
import * as SQMatchRepository from "~/features/sendouq-match/SQMatchRepository.server";
|
||||||
|
import { refreshStreamsCache } from "~/features/sendouq-streams/core/streams.server";
|
||||||
import { errorToastIfFalsy, parseRequestPayload } from "~/utils/remix.server";
|
import { errorToastIfFalsy, parseRequestPayload } from "~/utils/remix.server";
|
||||||
import { assertUnreachable } from "~/utils/types";
|
import { assertUnreachable } from "~/utils/types";
|
||||||
import { navIconUrl, SENDOUQ_PAGE, sendouQMatchPage } from "~/utils/urls";
|
import { navIconUrl, SENDOUQ_PAGE, sendouQMatchPage } from "~/utils/urls";
|
||||||
|
|
@ -177,6 +178,7 @@ export const action: ActionFunction = async ({ request }) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
await refreshSendouQInstance();
|
await refreshSendouQInstance();
|
||||||
|
refreshStreamsCache();
|
||||||
|
|
||||||
if (createdMatch.chatCode) {
|
if (createdMatch.chatCode) {
|
||||||
ChatSystemMessage.setMetadata({
|
ChatSystemMessage.setMetadata({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user