@cryptotaxi247 / CoPilot / commits / 97fe4649

Remove unnecessary comment and improve case retrieval in get_all_cases() function

Taylor committed Jan 29, 2024 at 12:18 UTC 97fe464937929d9d8b12e0efc9dbaaf36739c696
1 file changed -1
backend/app/connectors/dfir_iris/services/cases.py
-1
@@ -113,7 +113,6 @@ async def get_all_cases(session: AsyncSession) -> CaseResponse:
113 if not result["success"]:
114 logger.error(f"Failed to get all cases: {result['message']}")
115 raise HTTPException(status_code=500, detail=f"Failed to get all cases: {result['message']}")
116 - # For the `customer_id` get the customer code from the database and append it to the case
116 for case in result["data"]:
117 case["customer_code"] = await get_customer_code(session, case["client_name"])
118 return CaseResponse(success=True, message="Successfully fetched all cases", cases=result["data"])