diff --git a/app/jobs/regular/user_email.rb b/app/jobs/regular/user_email.rb index 191d16c13cb..4c1e3c3ccb3 100644 --- a/app/jobs/regular/user_email.rb +++ b/app/jobs/regular/user_email.rb @@ -24,7 +24,7 @@ module Jobs send_user_email(args) - if args[:user_id].present? && args[:type] == :digest + if args[:user_id].present? && args[:type].to_s == "digest" # Record every attempt at sending a digest email, even if it was skipped UserStat.where(user_id: args[:user_id]).update_all(digest_attempted_at: Time.zone.now) end