mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-11 03:38:02 +00:00
refac
This commit is contained in:
parent
8594b2f421
commit
7cd0785033
1 changed files with 1 additions and 0 deletions
|
|
@ -1039,6 +1039,7 @@ async def yjs_document_update(sid, data):
|
|||
if await document_save_handler(document_id, data.get('data', {}), user):
|
||||
if not await YDOC_MANAGER.get_users(document_id):
|
||||
await YDOC_MANAGER.clear_document(document_id)
|
||||
# A waiting disconnect must see that this save has finished.
|
||||
await cleanup_task(REDIS, task_id, document_id)
|
||||
|
||||
if document_id.startswith('note:') and data.get('data'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue