mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-23 21:21:04 +10:00
socket.io server init
* Make Hocuspocus collaboration websocket server (wsAdapter) work with socket.io * Create database module for TypeOrm
This commit is contained in:
@ -29,7 +29,7 @@ export function usePersistence<T>() {
|
||||
setData(tree.data);
|
||||
|
||||
const currentTreeData = args.parentId ? tree.find(args.parentId).children : tree.data;
|
||||
const afterId = currentTreeData[args.index - 2]?.id || null;
|
||||
const afterId = currentTreeData[args.index - 2]?.id || null; //TODO: fix after Id bug
|
||||
const beforeId = !afterId && currentTreeData[args.index + 1]?.id || null;
|
||||
|
||||
const params: IMovePage= {
|
||||
|
||||
Reference in New Issue
Block a user