Yuki Takei пре 1 година
родитељ
комит
2c56ddbc2e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/app/src/server/service/yjs/yjs.ts

+ 1 - 1
apps/app/src/server/service/yjs/yjs.ts

@@ -98,7 +98,7 @@ class YjsService implements IYjsService {
       // Triggered when the last user leaves the editor
       if (awarenessStateSize === 0) {
         const ydocStatus = await this.getYDocStatus(pageId);
-        const hasYdocsNewerThanLatestRevision = ydocStatus === YDocStatus.DRAFT || YDocStatus.ISOLATED;
+        const hasYdocsNewerThanLatestRevision = ydocStatus === YDocStatus.DRAFT || ydocStatus === YDocStatus.ISOLATED;
 
         io
           .in(getRoomNameWithId(RoomPrefix.PAGE, pageId))