feat: Add event selection to Slack post integration (#2857)

This commit is contained in:
Tom Moor
2021-12-16 22:30:23 -08:00
committed by GitHub
parent 9a7b5ea1f4
commit d4695f3b5b
13 changed files with 270 additions and 69 deletions

View File

@@ -17,8 +17,7 @@ export default async function documentUpdater({
const document = await Document.findByPk(documentId);
const state = Y.encodeStateAsUpdate(ydoc);
const node = Node.fromJSON(schema, yDocToProsemirrorJSON(ydoc, "default"));
// @ts-expect-error ts-migrate(2554) FIXME: Expected 2 arguments, but got 1.
const text = serializer.serialize(node);
const text = serializer.serialize(node, undefined);
const isUnchanged = document.text === text;
const hasMultiplayerState = !!document.state;