소스 검색

refac/fix

Timothy Jaeryang Baek 2 달 전
부모
커밋
c03b574ef6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/open_webui/socket/main.py

+ 1 - 1
backend/open_webui/socket/main.py

@@ -581,7 +581,7 @@ async def yjs_document_leave(sid, data):
         )
 
         if (
-            YDOC_MANAGER.document_exists(document_id)
+            await YDOC_MANAGER.document_exists(document_id)
             and len(await YDOC_MANAGER.get_users(document_id)) == 0
         ):
             log.info(f"Cleaning up document {document_id} as no users are left")