mirror of
https://github.com/discourse/discourse-data-explorer.git
synced 2025-02-16 08:24:47 +00:00
[FIX] The user_list parameter returned user objects instead of their IDs (#239)
This commit is contained in:
parent
b565d70dd5
commit
98e96fccc2
@ -203,7 +203,7 @@ module ::DiscourseDataExplorer
|
||||
value = string.split(",").map { |s| s.downcase == "#null" ? nil : s }
|
||||
invalid_format string, "can't be empty" if value.length == 0
|
||||
when :user_list
|
||||
value = string.split(",").map { |s| User.find_by_username_or_email(s) }
|
||||
value = string.split(",").map { |s| User.find_by_username_or_email(s).id }
|
||||
invalid_format string, "can't be empty" if value.length == 0
|
||||
else
|
||||
raise TypeError.new("unknown parameter type??? should not get here")
|
||||
|
Loading…
x
Reference in New Issue
Block a user