fix(scripts): verify_upload_size — processing_queue 컬럼 doc_id → document_id

This commit is contained in:
Hyungi Ahn
2026-04-17 08:26:08 +09:00
parent 2f68fd4196
commit 3780c10f39
+2 -2
View File
@@ -76,7 +76,7 @@ async def _pre_cleanup(session_factory, inbox: Path) -> int:
for doc_id, file_path in rows: for doc_id, file_path in rows:
_unlink_by_relpath(file_path, inbox) _unlink_by_relpath(file_path, inbox)
await s.execute( await s.execute(
text("DELETE FROM processing_queue WHERE doc_id = :id"), text("DELETE FROM processing_queue WHERE document_id = :id"),
{"id": doc_id}, {"id": doc_id},
) )
await s.execute( await s.execute(
@@ -117,7 +117,7 @@ async def _case_cleanup(
for doc_id, file_path in rows: for doc_id, file_path in rows:
_unlink_by_relpath(file_path, inbox) _unlink_by_relpath(file_path, inbox)
await s.execute( await s.execute(
text("DELETE FROM processing_queue WHERE doc_id = :id"), text("DELETE FROM processing_queue WHERE document_id = :id"),
{"id": doc_id}, {"id": doc_id},
) )
await s.execute( await s.execute(