From e808642c209ce0c74c29921ded747b0701e5d150 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Tue, 6 Feb 2024 20:37:08 +0100 Subject: [PATCH] fix --- app/models/research/hal/author.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/research/hal/author.rb b/app/models/research/hal/author.rb index 5ed274912..4db356faa 100644 --- a/app/models/research/hal/author.rb +++ b/app/models/research/hal/author.rb @@ -65,7 +65,7 @@ class Research::Hal::Author < ApplicationRecord end def import_research_hal_publications! - publications.clear + publications.hal.clear # Do not overuse the API if no researcher is concerned return if researchers.none? Importers::Hal.import_publications_for_author(self).each do |publication| -- GitLab