socket.io server init

* Make Hocuspocus collaboration websocket server (wsAdapter) work with socket.io
* Create database module for TypeOrm
This commit is contained in:
Philipinho
2023-10-16 15:19:30 +01:00
parent 60fcf99e6e
commit 2e9969d590
9 changed files with 99 additions and 26 deletions

View File

@ -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= {