Commit c656d9c6 authored by Michael Rose's avatar Michael Rose

story: update: insert update record for new stories

parent 56dd692b
......@@ -91,7 +91,7 @@ class Story < ActiveRecord::Base
story = from_es_doc(author, doc)!
if orig && story.updated > orig.updated
if !orig || story.updated > orig.updated
story_title: story.title,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment