From f3492431d259b7e2654d0f309cc9a6080990acbd Mon Sep 17 00:00:00 2001 From: Peter de Kraker Date: Sun, 25 Jul 2021 22:57:13 +0200 Subject: [PATCH] fix create_help_center_translation.rb, by removing part of incorrect url. --- lib/zendesk2/help_center/create_help_center_translation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zendesk2/help_center/create_help_center_translation.rb b/lib/zendesk2/help_center/create_help_center_translation.rb index 2d037ac..25e5e52 100644 --- a/lib/zendesk2/help_center/create_help_center_translation.rb +++ b/lib/zendesk2/help_center/create_help_center_translation.rb @@ -4,7 +4,7 @@ class Zendesk2::CreateHelpCenterTranslation include Zendesk2::HelpCenter::TranslationSource::Request request_method :post - request_path { |r| "/help_center/#{r.source_type_url}/#{r.source_id}/translations/#{r.locale}.json" } + request_path { |r| "/help_center/#{r.source_type_url}/#{r.source_id}/translations" } request_body { |r| { 'translation' => r.translation_params } } def self.accepted_attributes @@ -20,7 +20,7 @@ def mock record = { 'id' => identity, - 'url' => url_for("/help_center/#{source_type_url}/#{source_id}/translation/#{locale}.json"), + 'url' => url_for("/help_center/#{source_type_url}/#{source_id}/translation"), 'html_url' => html_url_for("/hc/#{locale}/#{source_type_url}/#{source_id}"), 'created_at' => timestamp, 'updated_at' => timestamp,