diff --git a/lib/tasks/sync_ntnu_personal_data_tasks.rake b/lib/tasks/sync_ntnu_personal_data_tasks.rake index 3bf86d8..6f1b937 100644 --- a/lib/tasks/sync_ntnu_personal_data_tasks.rake +++ b/lib/tasks/sync_ntnu_personal_data_tasks.rake @@ -32,13 +32,9 @@ module NtnuSyncPlugin end end - if invalid_apa_title.include? apa_title - jp.delete - else - jp.publication_date = "#{publication_year}/#{publication_month}/01" - jp.member_profile_id = user.member_profile_id - puts "journal paper #{jp.id} saved" if jp.save - end + jp.publication_date = "#{publication_year}/#{publication_month}/01" + jp.member_profile_id = user.member_profile_id + puts "journal paper #{jp.id} saved" if jp.save end end @@ -92,12 +88,8 @@ module NtnuSyncPlugin end end - if invalid_apa_title.include? apa_title - wc.delete - else - wc.member_profile_id = user.member_profile_id - puts "conference paper #{wc.id} saved" if wc.save - end + wc.member_profile_id = user.member_profile_id + puts "conference paper #{wc.id} saved" if wc.save end end