Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/datacite/lupo
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Nov 27, 2020
2 parents 23791d1 + 6ece672 commit 9f4aa94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,9 @@ def transfer_prefixes(provider_target_id: nil)
if prefix_ids.present?
response = ProviderPrefix.where("prefix_id IN (?)", prefix_ids).destroy_all
Rails.logger.info "[Transfer][Prefix] #{response.count} provider prefixes deleted. #{prefix_ids}"

response = ClientPrefix.where("prefix_id IN (?)", prefix_ids).destroy_all
Rails.logger.info "[Transfer][Prefix] #{response.count} client prefixes deleted. #{prefix_ids}"
end

# Assign prefix(es) to provider and client
Expand Down

0 comments on commit 9f4aa94

Please sign in to comment.