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:
parent
ff47f47a37
commit
9ca6094984
5 changed files with 7 additions and 7 deletions
|
|
@ -201,7 +201,7 @@ class CPNIFilingHandler(BaseServiceHandler):
|
|||
if path.endswith(".pdf") and "certification" in path.lower():
|
||||
remote = f"compliance/{order_number}/{os.path.basename(path)}"
|
||||
try:
|
||||
storage.upload_file(path, remote)
|
||||
storage.upload(path, remote)
|
||||
pdf_minio_key = remote
|
||||
except Exception as exc:
|
||||
logger.warning("MinIO upload failed for %s: %s", path, exc)
|
||||
|
|
@ -229,7 +229,7 @@ class CPNIFilingHandler(BaseServiceHandler):
|
|||
logger.warning("Could not create CPNI eSign record: %s", exc)
|
||||
|
||||
logger.info("CPNIFilingHandler: paused for client eSign — order %s", order_number)
|
||||
return generated
|
||||
return [] # Don't return files — prevents instant delivery before signing
|
||||
|
||||
# ── 2b. Auto-filing toggle ──────────────────────────────────────
|
||||
decision = check_auto_filing(order_data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue