chore: enabled orm initialization when startup
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
9754576d28
commit
962292cfe0
@ -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()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user