Catch validation errors in ProcessFeedService so that one failing entry wouldn't stop others from going through

th-downstream
Eugen Rochko 8 years ago
parent d2029a8845
commit b373fb0ff6

@ -36,6 +36,9 @@ class ProcessFeedService < BaseService
when :delete
return delete_status
end
rescue ActiveRecord::RecordInvalid => e
Rails.logger.debug "Nothing was saved for #{id} because: #{e}"
nil
end
private

Loading…
Cancel
Save