Fix DB issue 2s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user