Fix MinioStorage.upload_file → .upload + suppress instant delivery during eSign pause

- upload_file doesn't exist on MinioStorage — the method is upload()
- Return [] when pausing for eSign so job_server doesn't trigger instant delivery

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-04 10:59:45 -05:00
parent ff47f47a37
commit 9ca6094984
5 changed files with 7 additions and 7 deletions

View file

@ -1528,7 +1528,7 @@ class Form499AHandler(BaseServiceHandler):
from scripts.document_gen import MinioStorage
storage = MinioStorage()
minio_key = f"engagement/{order_number}/engagement_letter.pdf"
storage.upload_file(pdf_path or docx_path, minio_key)
storage.upload(pdf_path or docx_path, minio_key)
# Update order with engagement letter path + mark eSign required
try: