Commit 62e8f87f authored by Dennis Schubert's avatar Dennis Schubert

Do not mute ActiveRecord::RecordNotUnique for now see #5971, regression from #5938

closes #5992
parent 4f2ee111
......@@ -25,16 +25,6 @@ module Workers
"already been taken"
"is ignored by the post author"
).any? {|reason| e.message.include? reason }
rescue ActiveRecord::RecordNotUnique => e
Rails.logger.info("failed to save received object: #{e.message}")
raise e unless %w(
index_comments_on_guid
index_likes_on_guid
index_posts_on_guid
"duplicate key in table 'comments'"
"duplicate key in table 'likes'"
"duplicate key in table 'posts'"
).any? {|index| e.message.include? index }
end
private
......
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