Fix: ホワイトリストのドメインリストが並べ替えされていない問題 (#706)

This commit is contained in:
KMY(雪あすか) 2024-04-09 12:06:41 +09:00 committed by GitHub
parent 44af34f306
commit f87d30a744
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ class SpecifiedDomain < ApplicationRecord
class << self
def white_list_domain_caches
Rails.cache.fetch('specified_domains:white_list') { white_list_domains.to_a }
Rails.cache.fetch('specified_domains:white_list') { white_list_domains.order(:domain).to_a }
end
def save_from_hashes(rows, type, caches)