From c7692b9049a25ff00c6e39d2854a125cbbc5411d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6pf?= Date: Fri, 27 Jan 2023 19:44:48 +0100 Subject: [PATCH] add 2nd missing await to async_managed_tx_method --- backend/oasst_backend/utils/database_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/oasst_backend/utils/database_utils.py b/backend/oasst_backend/utils/database_utils.py index 196178e5..5ac25f50 100644 --- a/backend/oasst_backend/utils/database_utils.py +++ b/backend/oasst_backend/utils/database_utils.py @@ -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):