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
, Cmd.batch
[ cmd
, Page.Packages.makeRequest
, makeRequest
new.elasticsearch
(Maybe.withDefault "" newModel.query)
|> Cmd.map PackagesMsg
|> Cmd.map msg
]
)
in

View file

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