Merge commit 'dfa5889fc0
' into kb_migration
This commit is contained in:
commit
4a19077534
285 changed files with 938 additions and 822 deletions
|
@ -5,9 +5,9 @@ class MigrateUnavailableInboxes < ActiveRecord::Migration[5.2]
|
|||
redis = RedisConfiguration.pool.checkout
|
||||
urls = redis.smembers('unavailable_inboxes')
|
||||
|
||||
hosts = urls.map do |url|
|
||||
hosts = urls.filter_map do |url|
|
||||
Addressable::URI.parse(url).normalized_host
|
||||
end.compact.uniq
|
||||
end.uniq
|
||||
|
||||
UnavailableDomain.delete_all
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue