FIX: Validation of topic params broke discourse-assign

This commit is contained in:
Gerhard Schlager 2018-08-14 18:40:42 +02:00
parent 87fa26b6c8
commit ba0e322fd0
2 changed files with 0 additions and 4 deletions

View File

@ -23,7 +23,6 @@ class TopicQuery
{
max_posts: zero_or_more,
exclude_category_ids: array_zero_or_more,
min_posts: zero_or_more,
}
end

View File

@ -17,9 +17,6 @@ RSpec.describe ListController do
end
it "does not return a 500 for invalid input" do
get "/latest?exclude_category_ids[]=bob"
expect(response.status).to eq(400)
get "/latest?min_posts=bob"
expect(response.status).to eq(400)