diff --git a/app/services/instagram/send_on_instagram_service.rb b/app/services/instagram/send_on_instagram_service.rb index c47b18188..dde8cf3d0 100644 --- a/app/services/instagram/send_on_instagram_service.rb +++ b/app/services/instagram/send_on_instagram_service.rb @@ -62,9 +62,8 @@ class Instagram::SendOnInstagramService < Base::SendOnChannelService body: message_content, query: query ) - # response = HTTParty.post(url, options) - Rails.logger.info("Instagram response: #{response} : #{message_content}") if response[:body][:error] + Rails.logger.info("Instagram response: #{response} : #{message_content}") if response[:body] response[:body] end