From 5ee307accda00e1c6a821bc7a2010f7a126e3eaf Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 15 Jun 2021 14:52:59 +0200 Subject: [PATCH] show from_salesforce attribute for repository updates --- app/controllers/repositories_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 95d02e8a3..7a29f5aa4 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -205,7 +205,7 @@ def create @client.send_welcome_email(responsible_id: current_user.uid) options = {} options[:is_collection] = false - options[:params] = { current_ability: current_ability } + options[:params] = { current_ability: current_ability, detail: true } render json: RepositorySerializer.new(@client, options).serialized_json, status: :created @@ -219,7 +219,7 @@ def create def update options = {} options[:is_collection] = false - options[:params] = { current_ability: current_ability } + options[:params] = { current_ability: current_ability, detail: true } if params.dig(:data, :attributes, :mode) == "transfer" # only update provider_id