fix(bot): 🚑 Bot not starting.
This commit is contained in:
@@ -9,8 +9,6 @@ from payphone.core import config
|
|||||||
async def init() -> None:
|
async def init() -> None:
|
||||||
"""Initialize the database and it's connections."""
|
"""Initialize the database and it's connections."""
|
||||||
|
|
||||||
await tortoise.Tortoise.close_connections()
|
|
||||||
|
|
||||||
await tortoise.Tortoise.init(config.TORTOISE_ORM, use_tz=True)
|
await tortoise.Tortoise.init(config.TORTOISE_ORM, use_tz=True)
|
||||||
|
|
||||||
await tortoise.Tortoise.generate_schemas(safe=True)
|
await tortoise.Tortoise.generate_schemas(safe=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user