FIX: Link post to uploads in PostCreator.

* This ensures that uploads are linked to their post on creation
  instead of a background job which may be delayed if Sidekiq
  is facing difficulties.
This commit is contained in:
Guo Xiang Tan
2018-09-06 09:58:01 +08:00
parent 5baecffb0d
commit 434035f167
8 changed files with 165 additions and 84 deletions

View File

@@ -38,7 +38,9 @@ class PostJobsEnqueuer
end
def trigger_post_post_process
@post.trigger_post_process
@post.trigger_post_process(
skip_link_post_uploads: @opts[:skip_link_post_uploads]
)
end
def after_post_create