aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/track_mailer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/track_mailer.rb b/app/models/track_mailer.rb
index ef5a0c195..d3b177f3d 100644
--- a/app/models/track_mailer.rb
+++ b/app/models/track_mailer.rb
@@ -43,7 +43,8 @@ class TrackMailer < ApplicationMailer
# What have we alerted on already?
# XXX this is pretty inefficient, should be restricting amount of objects returned
# with track_things_sent_emails by a date range. Or, better, deleting old entries
- # from the database entirely.
+ # from the database entirely. Make sure that the date range for the actual search
+ # means we aren't resending results.
done_info_request_events = {}
for t in track_thing.track_things_sent_emails
if not t.info_request_event_id.nil?