email job needs to respect active as well

This commit is contained in:
Connor Turland 2017-09-13 10:20:25 -04:00
parent a56991aede
commit 35f77129ad

View file

@ -5,7 +5,7 @@ namespace :metamaps do
end
def summarize_map_activity
Follow.where(followed_type: 'Map').find_each do |follow|
Follow.active.where(followed_type: 'Map').find_each do |follow|
map = follow.followed
user = follow.user
# add logging and rescue-ing