diff --git a/api/chalicelib/utils/pg_client.py b/api/chalicelib/utils/pg_client.py index eda7747f8..014cfaeee 100644 --- a/api/chalicelib/utils/pg_client.py +++ b/api/chalicelib/utils/pg_client.py @@ -111,7 +111,7 @@ class PostgresClient: else: raise error finally: - if not self.long_query: + if not self.long_query and not self.unlimited_query: postgreSQL_pool.putconn(self.connection)