fix error

This commit is contained in:
chiu 2020-08-28 17:12:28 +08:00
parent 464e195a8c
commit 14669beba5
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ namespace :epaper do
if !paper.nil? if !paper.nil?
subscribers = EPaperSubscriber.where(:language.in=>paper.language_to_send,:email.nin=>['',nil]) subscribers = EPaperSubscriber.where(:language.in=>paper.language_to_send,:email.nin=>['',nil])
subscribers.update_all(:last_paper_sent => paper.id.to_s) subscribers.update_all(:last_paper_sent => paper.id.to_s)
emails = subscribers.collect(:email) emails = subscribers.collect(&:email)
site = Site.first site = Site.first
email_limit_reciever = site[:site_settings][:email_limit_reciever].to_i rescue 0 email_limit_reciever = site[:site_settings][:email_limit_reciever].to_i rescue 0
mail_limit = email_limit_reciever==0 ? 25 : email_limit_reciever mail_limit = email_limit_reciever==0 ? 25 : email_limit_reciever