Drop reply_key, skipped and skipped_reason from email_logs.

This commit is contained in:
Guo Xiang Tan
2018-07-27 12:32:07 +08:00
parent b94633e844
commit 87537b679c
10 changed files with 65 additions and 62 deletions

View File

@ -18,12 +18,11 @@ class Admin::EmailController < Admin::AdminController
end
def sent
email_logs = EmailLog.sent
.joins("
LEFT JOIN post_reply_keys
ON post_reply_keys.post_id = email_logs.post_id
AND post_reply_keys.user_id = email_logs.user_id
")
email_logs = EmailLog.joins(<<~SQL)
LEFT JOIN post_reply_keys
ON post_reply_keys.post_id = email_logs.post_id
AND post_reply_keys.user_id = email_logs.user_id
SQL
email_logs = filter_logs(email_logs, params)