Skip to content
Snippets Groups Projects
Unverified Commit c8aec4ce authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

update hal api without sync

parent 8dd59856
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