From 9d1287478ec7f0af8e93473badd0f238fd67a342 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Wed, 15 Jan 2025 17:22:15 +0200 Subject: [PATCH] add logging for debugging --- app/models/orcid_affiliation.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/orcid_affiliation.rb b/app/models/orcid_affiliation.rb index c5ae19b..7d9d05c 100644 --- a/app/models/orcid_affiliation.rb +++ b/app/models/orcid_affiliation.rb @@ -110,6 +110,7 @@ def self.push_item(item) # there can be one or more affiliation_identifier per DOI Array.wrap(push_items).each do |iiitem| + subj1 = "#{iiitem["obj"]["id"]}#{"abc"}" data = { "data" => { "type" => "events", @@ -124,7 +125,7 @@ def self.push_item(item) "timestamp" => iiitem["timestamp"], "license" => iiitem["license"], # "subj" => iiitem["subj"], - "subj" => "#{iiitem["obj"]}abc", + "subj" => subj1, "obj" => iiitem["obj"], }, },