Commit 283a2933 authored by Christophe Benz's avatar Christophe Benz

Adapt last updates page to API 22

parent 9164aea0
......@@ -96,7 +96,7 @@ lastUpdates apiBaseUrl offset =
Url.build
(Url.Absolute apiBaseUrl)
[ "last-updates" ]
[ ( "offset", toString offset ) ]
[ ( "datasets.offset", toString offset ) ]
in
Http.get url lastUpdatesResponse
......@@ -228,7 +228,13 @@ firstDictValue decoder =
lastUpdatesResponse : Decoder LastUpdatesResponse
lastUpdatesResponse =
field "datasets" <| list Data.LastUpdates.datasetUpdate
field "datasets"
(paginatedList Data.LastUpdates.datasetUpdate
|> map
(\{ docs } ->
docs
)
)
providerByCodeResponse : Decoder ProviderByCodeResponse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment