Fix interaction with boards and worklists

This commit fixes a bug where we expect timeline events to be
only for stories, which causes any interaction with boards and
worklists to be impossible.

Change-Id: Icd502cb1dc03db0d124233e9df5e7c0fc3ad1ac1
This commit is contained in:
Adam Coldrick 2016-10-24 09:41:34 +00:00
parent 7142ffd9ce
commit ef92ba2fec
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@ def events_get_count(current_user=None, **kwargs):
def event_create(values):
new_event = api_base.entity_create(models.TimeLineEvent, values)
if new_event:
stories_api.story_update_updated_at(new_event.story_id)
if new_event.story_id is not None:
stories_api.story_update_updated_at(new_event.story_id)
# TODO(SotK): Update board and worklist updated_at when they get events
if CONF.enable_notifications:
# Build the payload. Use of None is included to ensure that we don't