fix: Fix missing await in initialize_alembic_log_file (#5334)

Fix missing await in initialize_alembic_log_file
This commit is contained in:
Christophe Bornet 2024-12-18 17:05:56 +01:00 committed by GitHub
commit 51677667ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,8 +68,8 @@ class DatabaseService(Service):
async def initialize_alembic_log_file(self):
# Ensure the directory and file for the alembic log file exists
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.parent).mkdir(parents=True, exist_ok=True)
await anyio.Path(self.alembic_log_path).touch(exist_ok=True)
def reload_engine(self) -> None:
self._sanitize_database_url()