Parcourir la source

Make mdb available externally

Shun Miyazawa il y a 1 an
Parent
commit
2ca9df31de
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      apps/app/src/server/service/yjs-connection-manager.ts

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

@@ -25,6 +25,10 @@ class YjsConnectionManager {
     return this.ysocketio;
   }
 
+  get mdbInstance(): MongodbPersistence {
+    return this.mdb;
+  }
+
   private constructor(io: Server) {
     this.ysocketio = new YSocketIO(io);
     this.ysocketio.initialize();