add missing await to async_managed_tx_method

This commit is contained in:
Andreas Köpf
2023-01-27 19:43:08 +01:00
parent 3b04080d7b
commit d165987256
@@ -98,7 +98,7 @@ def async_managed_tx_method(
retry_exhausted = True
for i in range(num_retries):
try:
result = f(self, *args, **kwargs)
result = await f(self, *args, **kwargs)
self.db.commit()
if isinstance(result, SQLModel):
self.db.refresh(result)