فهرست منبع

feat(documents): commit document delete

Jonathan Rohde 10 ماه پیش
والد
کامیت
3b112375ee
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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:
 
                 db.query(Document).filter_by(name=name).delete()
+                db.commit()
                 return True
         except:
             return False