mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 03:27:25 +08:00
FIX: searching email logs by reply key (#6868)
* you can't use LIKE or ILIKE on a UUID
This commit is contained in:
parent
6f867660bc
commit
c85b9c6ed3
@ -32,7 +32,7 @@ class Admin::EmailController < Admin::AdminController
|
|||||||
|
|
||||||
if params[:reply_key].present?
|
if params[:reply_key].present?
|
||||||
email_logs = email_logs.where(
|
email_logs = email_logs.where(
|
||||||
"post_reply_keys.reply_key ILIKE ?", "%#{params[:reply_key]}%"
|
"CAST (post_reply_keys.reply_key AS VARCHAR) ILIKE ?", "%#{params[:reply_key]}%"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user