Skip to content
Snippets Groups Projects
Unverified Commit 19de281c authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Merge pull request #1134 from noesya/hal-update-api-without-sync

update hal api without sync
parents 8dd59856 c8aec4ce
No related branches found
No related tags found
No related merge requests found
......@@ -7,11 +7,14 @@ module Research::Hal
end
def self.update_from_api!
# TODO suspendre les mises à jour des objets indirects
Research::Hal::Author.find_each do |author|
author.import_research_hal_publications!
begin
Research::Hal::Publication.skip_callback :save, :after, :connect_and_sync_direct_sources
Research::Hal::Author.find_each do |author|
author.import_research_hal_publications!
end
ensure
Research::Hal::Publication.set_callback :save, :after, :connect_and_sync_direct_sources
end
# TODO remettre la mise à jour des objects indirects
end
def self.parts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment