publish: return JS number revision

fixes #3859, fixes #3844
This commit is contained in:
Tyler Brown Cifu Shuster 2020-11-02 12:17:21 -08:00
parent e279b08049
commit c4cdf415c9

View File

@ -87,7 +87,7 @@ export function getLatestRevision(node: GraphNode): [number, string, string, Pos
return empty
}
const [title, body] = rev.post.contents as TextContent[];
return [revNum, title.text, body.text, rev.post];
return [revNum.toJSNumber(), title.text, body.text, rev.post];
}
export function getComments(node: GraphNode): GraphNode {