From ef726a3b34e7d0071546cbd5a5480246c12add98 Mon Sep 17 00:00:00 2001 From: takker99 <37929109+takker99@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:08:39 +0900 Subject: [PATCH] chore(websocket): Forgot to remove `PinChange` Fix #220 --- websocket/patch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/websocket/patch.ts b/websocket/patch.ts index 090dc06..6dd2317 100644 --- a/websocket/patch.ts +++ b/websocket/patch.ts @@ -1,4 +1,4 @@ -import type { Change, DeletePageChange, PinChange } from "./change.ts"; +import type { Change, DeletePageChange } from "./change.ts"; import { makeChanges } from "./makeChanges.ts"; import type { BaseLine, Page } from "@cosense/types/rest"; import { push, type PushError, type PushOptions } from "./push.ts"; @@ -73,7 +73,7 @@ export const patch = ( return prev.map((change) => { if ("title" in change) change.title = fallbackTitle; return change; - }) as Change[] | [DeletePageChange] | [PinChange]; + }) as Change[] | [DeletePageChange]; } const pending = update(page.lines, { ...page, attempts }); const newLines = pending instanceof Promise ? await pending : pending;