make request to the right search page, fixes #4 (#7)

This commit is contained in:
Rok Garbas 2020-05-08 16:56:14 +02:00 committed by GitHub
parent 387d70eaa3
commit f25b287926
Failed to generate hash of commit
2 changed files with 2 additions and 3 deletions

View file

@ -117,10 +117,10 @@ submitQuery old ( new, cmd ) =
( new ( new
, Cmd.batch , Cmd.batch
[ cmd [ cmd
, Page.Packages.makeRequest , makeRequest
new.elasticsearch new.elasticsearch
(Maybe.withDefault "" newModel.query) (Maybe.withDefault "" newModel.query)
|> Cmd.map PackagesMsg |> Cmd.map msg
] ]
) )
in in

View file

@ -146,7 +146,6 @@ makeRequest :
makeRequest options query = makeRequest options query =
ElasticSearch.makeRequest ElasticSearch.makeRequest
"option_name" "option_name"
-- TODO: add support for different channels
"nixos-unstable-options" "nixos-unstable-options"
decodeResultItemSource decodeResultItemSource
options options