discourse/app/jobs
Régis Hanol d51019ee53 FIX: *always* create an EmailLog whenever we run the UserEmail job
There were actually 2 bugs:

1/ Calling '.try(:key)' on a hash doesn't work. So EmailLogs were never associated to a user.

2/ Turns out that we update the 'user.last_emailed_at' whenever we create an EmailLog (in the 'after_create' callback).
So we need to always create an EmailLog (whenever the email is sent or skipped).
2016-01-28 19:01:35 +01:00
..
regular FIX: *always* create an EmailLog whenever we run the UserEmail job 2016-01-28 19:01:35 +01:00
scheduled FIX: *always* create an EmailLog whenever we run the UserEmail job 2016-01-28 19:01:35 +01:00
base.rb FIX: 'cancel_scheduled_job' wasn't working due to sidekiq upgrade 2016-01-13 09:08:26 +01:00
stats.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00