Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneHaensel committed May 8, 2024
1 parent 0e059dc commit 3b8c643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ def publish_to_csh
url_publish=Seek::Config.n4h_publish_url.blank? ? nil : Seek::Config.n4h_publish_url#"https://csh.nfdi4health.de/api/resource/"
endpoints = Nfdi4Health::Client.new(authorization_url)
endpoints.send_transforming_api(user_attributes_selected_json_parse.to_json,url)
aaa


project_transformed_hash=JSON.parse(JSON.parse(endpoints.to_json)['transformed'])
project_transformed_update_hash = project_transformed_hash#{data: project_transformed_hash }
Expand All @@ -610,14 +610,6 @@ def publish_to_csh
#@project.extended_metadata.data.update(Resource_identifier_Project: identifier)
#@project.extended_metadata.data.set_attribute_value(:Resource_identifier_Project, identifier)









flash[:notice] = "#{t('project')} was successfully published with ID #{identifier}."
respond_to do |format|
#@project.reload
Expand Down
2 changes: 1 addition & 1 deletion lib/nfdi4health/csh_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Nfdi4Health

class Client

attr_accessor :transformed
def initialize(endpoint)
#@endpoint = RestClient::Resource.new(endpoint)

Expand Down

0 comments on commit 3b8c643

Please sign in to comment.