Improve auth process 4

This commit is contained in:
Urtzi Alfaro
2025-07-20 09:18:08 +02:00
parent 0b1e67a76c
commit 608585c72c
6 changed files with 59 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.core.config import settings
from app.core.database import engine
from app.core.database import database_manager
from app.api import tenants
from shared.monitoring.logging import setup_logging
from shared.monitoring.metrics import MetricsCollector
@@ -51,7 +51,7 @@ async def startup_event():
async def shutdown_event():
"""Cleanup on shutdown"""
logger.info("Shutting down Tenant Service...")
await engine.dispose()
await database_manager.engine.dispose()
@app.get("/health")
async def health_check():