Skip to content

Commit 90d8d5d

Browse files
fix: type, just use hocuspocusservercontext
1 parent 3629273 commit 90d8d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/live/src/utils/broadcast-error.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Hocuspocus } from "@hocuspocus/server";
22
import { createRealtimeEvent } from "@plane/editor";
33
import { logger } from "@plane/logger";
4-
import type { FetchPayloadWithContext, StorePayloadWithContext } from "@/types";
4+
import type { HocusPocusServerContext } from "@/types";
55
import { broadcastMessageToPage } from "./broadcast-message";
66

77
// Helper to broadcast error to frontend
@@ -10,7 +10,7 @@ export const broadcastError = async (
1010
pageId: string,
1111
errorMessage: string,
1212
errorType: "fetch" | "store",
13-
context: FetchPayloadWithContext["context"],
13+
context: HocusPocusServerContext,
1414
errorCode?: "content_too_large" | "page_locked" | "page_archived",
1515
shouldDisconnect?: boolean
1616
) => {

0 commit comments

Comments
 (0)