Fix DB issue 2s
This commit is contained in:
@@ -267,7 +267,7 @@ async def update_tenant_enhanced(
|
||||
@track_endpoint_metrics("tenant_update_model_status")
|
||||
async def update_tenant_model_status_enhanced(
|
||||
tenant_id: UUID = Path(..., description="Tenant ID"),
|
||||
model_trained: bool = Query(..., description="Whether model is trained"),
|
||||
ml_model_trained: bool = Query(..., description="Whether model is trained"),
|
||||
last_training_date: Optional[datetime] = Query(None, description="Last training date"),
|
||||
current_user: Dict[str, Any] = Depends(get_current_user_dep),
|
||||
tenant_service: EnhancedTenantService = Depends(get_enhanced_tenant_service)
|
||||
@@ -277,7 +277,7 @@ async def update_tenant_model_status_enhanced(
|
||||
try:
|
||||
result = await tenant_service.update_model_status(
|
||||
str(tenant_id),
|
||||
model_trained,
|
||||
ml_model_trained,
|
||||
current_user["user_id"],
|
||||
last_training_date
|
||||
)
|
||||
@@ -551,4 +551,4 @@ async def get_tenant_statistics_enhanced(
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||
detail="Failed to get tenant statistics"
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user