Skip to content

Commit bb5cafd

Browse files
authored
Merge pull request #222 from takker99:pin
chore(websocket): Forgot to remove `PinChange`
2 parents b9d9912 + ef726a3 commit bb5cafd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websocket/patch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Change, DeletePageChange, PinChange } from "./change.ts";
1+
import type { Change, DeletePageChange } from "./change.ts";
22
import { makeChanges } from "./makeChanges.ts";
33
import type { BaseLine, Page } from "@cosense/types/rest";
44
import { push, type PushError, type PushOptions } from "./push.ts";
@@ -73,7 +73,7 @@ export const patch = (
7373
return prev.map((change) => {
7474
if ("title" in change) change.title = fallbackTitle;
7575
return change;
76-
}) as Change[] | [DeletePageChange] | [PinChange];
76+
}) as Change[] | [DeletePageChange];
7777
}
7878
const pending = update(page.lines, { ...page, attempts });
7979
const newLines = pending instanceof Promise ? await pending : pending;

0 commit comments

Comments
 (0)