Skip to content

Commit

Permalink
Send emails for non-deleted watches #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Feb 15, 2016
1 parent d861c8e commit 926309c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/libraries/Auto_email.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ private function userWithWatchWithoutMeasure(&$queuedEmail) {
user.name as lastname, user.firstname, email')
->join('user', 'watch.userId = user.userId')
->where('(select count(1) from measure where watch.watchId = measure.watchId) = ', 0)
->where('watch.status', 1)
->where('creationDate < ', $this->getBatchUpperBound($this->day))
->where('creationDate > ', $this->getBatchLowerBound($this->day))
->as_array()
Expand Down

0 comments on commit 926309c

Please sign in to comment.