Fix DB issue 2s

This commit is contained in:
Urtzi Alfaro
2025-09-30 21:58:10 +02:00
parent 147893015e
commit 7cc4b957a5
77 changed files with 4385 additions and 1211 deletions

View File

@@ -483,7 +483,7 @@ class EnhancedTenantService:
async def update_model_status(
self,
tenant_id: str,
model_trained: bool,
ml_model_trained: bool,
user_id: str,
last_training_date: datetime = None
) -> TenantResponse:
@@ -501,7 +501,7 @@ class EnhancedTenantService:
async with self.database_manager.get_session() as db_session:
await self._init_repositories(db_session)
updated_tenant = await self.tenant_repo.update_tenant_model_status(
tenant_id, model_trained, last_training_date
tenant_id, ml_model_trained, last_training_date
)
if not updated_tenant:
@@ -671,4 +671,4 @@ class EnhancedTenantService:
# Legacy compatibility alias
TenantService = EnhancedTenantService
TenantService = EnhancedTenantService