fix(06.2): CR-02 add MinIOBackend guard in download_daily_export before accessing _client

This commit is contained in:
curo1305
2026-06-01 14:25:06 +02:00
parent a3ad36cc82
commit 50859bb430
+2
View File
@@ -217,6 +217,8 @@ async def download_daily_export(
raise HTTPException(status_code=404, detail="Invalid date format")
backend = get_storage_backend()
if not isinstance(backend, MinIOBackend):
raise HTTPException(status_code=404, detail="Export not found")
key = f"audit-logs/{date}.csv"
def _get() -> bytes: