From 962292cfe0b640d2e01ef48a7308ace0b995d692 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Wed, 12 Mar 2025 16:10:47 +0800 Subject: [PATCH] chore: enabled orm initialization when startup Signed-off-by: zhenyus --- apps/authentication/webapi/providers/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/webapi/providers/database.py b/apps/authentication/webapi/providers/database.py index 334279a..aaf1cca 100644 --- a/apps/authentication/webapi/providers/database.py +++ b/apps/authentication/webapi/providers/database.py @@ -21,7 +21,7 @@ def register(app): # Configure logging for pymongo logging.getLogger("pymongo").setLevel(logging.WARNING) # Suppress DEBUG logs - # @app.on_event("startup") + @app.on_event("startup") async def start_database(): await initiate_database()