소스 검색

Merge pull request #3713 from jonathan-rohde/fix/missing-commits

fix: commit document delete
Timothy Jaeryang Baek 10 달 전
부모
커밋
36c0f7f273
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