Okay, THIS time the specs should pass. Geez.
This commit is contained in:
parent
9c461aced4
commit
8942d9a094
|
@ -132,9 +132,9 @@ class PostCreator
|
||||||
|
|
||||||
# We need to enqueue jobs after the transaction. Otherwise they might begin before the data has
|
# We need to enqueue jobs after the transaction. Otherwise they might begin before the data has
|
||||||
# been comitted.
|
# been comitted.
|
||||||
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic.present?
|
topic_id = @opts[:topic_id] || topic.try(:id)
|
||||||
|
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic_id.present?
|
||||||
post.trigger_post_process
|
post.trigger_post_process if post.present?
|
||||||
|
|
||||||
post
|
post
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue