FIX: post_destroyed webhook event not fired

This commit is contained in:
Vinoth Kannan 2018-02-13 01:36:56 +05:30
parent 6287631745
commit e700e3e882
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ module Jobs
end
def setup_post(args)
post = Post.find_by(id: args[:post_id])
post = Post.with_deleted.find_by(id: args[:post_id])
return if post.blank?
args[:payload] = WebHookPostSerializer.new(post, scope: guardian, root: false).as_json
end