Fix SubscriptionEvents not making it into the database

On my test instance, SubscriptionEvents were being created
successfully, but the changes were never flushed to the
database while the autocommit parameter was set.

Change-Id: I088904b74931179f22aed9595a374f9fed4a607c
This commit is contained in:
Adam Coldrick 2015-10-29 17:21:50 +00:00
parent f7c2d2320c
commit 5525a608b9

View File

@ -168,7 +168,7 @@ class WorkerTaskBase(PluginBase):
A database session is created, and passed to the abstract method.
"""
session = db_api.get_session(in_request=False, autocommit=False)
session = db_api.get_session(in_request=False)
with session.begin(subtransactions=True):
author = self.resolve_resource_by_name(session, 'user', author_id)