add 2nd missing await to async_managed_tx_method

This commit is contained in:
Andreas Köpf
2023-01-27 19:44:48 +01:00
parent d165987256
commit c7692b9049
@@ -123,7 +123,7 @@ def async_managed_tx_method(
http_status_code=HTTPStatus.SERVICE_UNAVAILABLE,
)
else:
result = f(self, *args, **kwargs)
result = await f(self, *args, **kwargs)
if auto_commit == CommitMode.FLUSH:
self.db.flush()
if isinstance(result, SQLModel):