This commit is contained in:
BoHung Chiu 2023-04-10 16:38:43 +08:00
parent f6dc36e194
commit 0132cb6cde
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ module AsiaSyncPlugin
return if journal_papers.count == 0
journal_papers.each do |journal_paper|
jp = JournalPaper.where(:rss2_id=> journal_paper["ukey"]).first
if jp && jp.member_profile_id.class != Array
JournalPaper.where(:id=>jp.id).update_all(:member_profile_id=> [member.id])
jp = jp.reload
end
jp = JournalPaper.new if jp.nil?
jp.rss2_id = journal_paper["ukey"]
jp.paper_title_translations = localize_data(journal_paper["Thesis_name"])