Browse Source

feat(documents): commit document delete

Jonathan Rohde 10 months ago
parent
commit
3b112375ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      backend/apps/webui/models/documents.py

+ 1 - 0
backend/apps/webui/models/documents.py

@@ -158,6 +158,7 @@ class DocumentsTable:
             with get_db() as db:
             with get_db() as db:
 
 
                 db.query(Document).filter_by(name=name).delete()
                 db.query(Document).filter_by(name=name).delete()
+                db.commit()
                 return True
                 return True
         except:
         except:
             return False
             return False