From 4153eed88a4732fcd94533c117523855a66d32df Mon Sep 17 00:00:00 2001 From: Mikko Ahlroth Date: Wed, 10 Aug 2022 20:06:14 +0300 Subject: [PATCH] Fix changed installations API --- lib/geo_therminator/pump_api/auth/api.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geo_therminator/pump_api/auth/api.ex b/lib/geo_therminator/pump_api/auth/api.ex index 9ce3da8..c85d2a3 100644 --- a/lib/geo_therminator/pump_api/auth/api.ex +++ b/lib/geo_therminator/pump_api/auth/api.ex @@ -51,7 +51,7 @@ defmodule GeoTherminator.PumpAPI.Auth.API do json = Jason.decode!(response.body) - Enum.map(json["installations"], fn item -> + Enum.map(json["items"], fn item -> %Auth.InstallationInfo{ id: item["id"] }