fix error
This commit is contained in:
parent
464e195a8c
commit
14669beba5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue