Explorar o código

Document -> Ydoc

Shun Miyazawa hai 1 ano
pai
achega
6f2bc085c8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/app/src/server/service/yjs-connection-manager.ts

+ 2 - 2
apps/app/src/server/service/yjs-connection-manager.ts

@@ -1,6 +1,6 @@
 import type { Server } from 'socket.io';
 import { MongodbPersistence } from 'y-mongodb-provider';
-import { YSocketIO, type Document } from 'y-socket.io/dist/server';
+import { YSocketIO, type Document as Ydoc } from 'y-socket.io/dist/server';
 import * as Y from 'yjs';
 
 import { getMongoUri } from '../util/mongoose-utils';
@@ -99,7 +99,7 @@ class YjsConnectionManager {
     Y.encodeStateAsUpdate(currentYdoc);
   }
 
-  public getCurrentYdoc(pageId: string): Document | undefined {
+  public getCurrentYdoc(pageId: string): Ydoc | undefined {
     const currentYdoc = this.ysocketio.documents.get(`yjs/${pageId}`);
     return currentYdoc;
   }