fix(scripts): verify_upload_size — processing_queue 컬럼 doc_id → document_id
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user