lib/zendesk2/client/requests/update_topic_comment.rb in zendesk2-0.4.4 vs lib/zendesk2/client/requests/update_topic_comment.rb in zendesk2-0.4.5

- old
+ new

@@ -18,11 +18,11 @@ def update_topic_comment(params={}) id = params.delete("id") topic_id = params.delete("topic_id") path = "/topics/#{topic_id}/comments/#{id}.json" - unless (topic_comment = self.data[:topic_comments][id]) && topic_comment["topic_id"] == topic_id - response(status: 404) + unless (topic_comment = self.find!(:topic_comments, id)) && topic_comment["topic_id"] == topic_id + error!(:not_found) else body = topic_comment.merge!(params) response( :method => :put, :path => path,