fix error

This commit is contained in:
邱博亞 2021-11-18 13:33:25 +08:00
parent 2f2ea7768b
commit 38e130664e
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Rails.application.routes.draw do
trans[locale]['more_plus'] = I18n.t(:more_plus) trans[locale]['more_plus'] = I18n.t(:more_plus)
end end
end end
SiteFeedAnnc.where(:feed_id.nin=>SiteFeed.all.pluck(:id)).destroy
SiteFeed.each do |site_feed| SiteFeed.each do |site_feed|
tmp = SiteFeedAnnc.where(feed_id: site_feed.id).first tmp = SiteFeedAnnc.where(feed_id: site_feed.id).first
if site_feed.disabled != true if site_feed.disabled != true