From 3b112375eefe263ab726a5bc51d7884562f4013c Mon Sep 17 00:00:00 2001 From: Jonathan Rohde Date: Mon, 8 Jul 2024 09:14:45 +0200 Subject: [PATCH] feat(documents): commit document delete --- backend/apps/webui/models/documents.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/apps/webui/models/documents.py b/backend/apps/webui/models/documents.py index 16145c4ac..ac8655da9 100644 --- a/backend/apps/webui/models/documents.py +++ b/backend/apps/webui/models/documents.py @@ -158,6 +158,7 @@ class DocumentsTable: with get_db() as db: db.query(Document).filter_by(name=name).delete() + db.commit() return True except: return False