fix: Fix missing await in initialize_alembic_log_file (#5334)
Fix missing await in initialize_alembic_log_file
This commit is contained in:
parent
d41d740768
commit
51677667ab
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ class DatabaseService(Service):
|
||||||
|
|
||||||
async def initialize_alembic_log_file(self):
|
async def initialize_alembic_log_file(self):
|
||||||
# Ensure the directory and file for the alembic log file exists
|
# Ensure the directory and file for the alembic log file exists
|
||||||
anyio.Path(self.alembic_log_path.parent).mkdir(parents=True, exist_ok=True)
|
await anyio.Path(self.alembic_log_path.parent).mkdir(parents=True, exist_ok=True)
|
||||||
anyio.Path(self.alembic_log_path).touch(exist_ok=True)
|
await anyio.Path(self.alembic_log_path).touch(exist_ok=True)
|
||||||
|
|
||||||
def reload_engine(self) -> None:
|
def reload_engine(self) -> None:
|
||||||
self._sanitize_database_url()
|
self._sanitize_database_url()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue