server/middleware: fix session usage
This commit is contained in:
parent
e3a4793d54
commit
bba327fe8a
|
@ -8,5 +8,4 @@ class DbSession(object):
|
||||||
request.context.session = self._session_factory()
|
request.context.session = self._session_factory()
|
||||||
|
|
||||||
def process_response(self, request, _response, _resource):
|
def process_response(self, request, _response, _resource):
|
||||||
# any commits need to happen explicitly in the API layer.
|
self._session_factory.remove()
|
||||||
request.context.session.close()
|
|
||||||
|
|
Loading…
Reference in New Issue