server/middleware: fix session usage

This commit is contained in:
rr- 2016-04-18 22:08:18 +02:00
parent e3a4793d54
commit bba327fe8a
1 changed files with 1 additions and 2 deletions

View File

@ -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()