chore: enabled orm initialization when startup

Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
zhenyus 2025-03-12 16:10:47 +08:00
parent 9754576d28
commit 962292cfe0

View File

@ -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()