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()
|
||||
|
||||
def process_response(self, request, _response, _resource):
|
||||
# any commits need to happen explicitly in the API layer.
|
||||
request.context.session.close()
|
||||
self._session_factory.remove()
|
||||
|
|
Loading…
Reference in New Issue