From 61e8aa9e9dc1b6475b788ee6a917e64a118a2d8b Mon Sep 17 00:00:00 2001 From: Felix Wiedenbach Date: Mon, 9 May 2022 18:10:00 +0200 Subject: [PATCH 1/2] fix prices for tankerkoenig stationIds --- CHANGELOG.md | 12 ++++++++++++ apis/tankerkoenig.js | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d8293a..cfa5bfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # MMM-Fuel Changelog +## [Unreleased] + +### Fixed + +* Tankerkoenig prices for requests with `stationIds` + +### Added + +### Changed + +### Removed + ## [2.3.0] MagicMirror² version >= 2.15.0 required. diff --git a/apis/tankerkoenig.js b/apis/tankerkoenig.js index b7a2a32..cd1fe80 100644 --- a/apis/tankerkoenig.js +++ b/apis/tankerkoenig.js @@ -293,8 +293,8 @@ async function getPricesByStationList(stationsByRadius) { for (const [stationId, info] of Object.entries(parsedResponse.prices)) { stations.push({ ...stationInfos[stationId], - isOpen: info.status !== 'closed', - prices: getPricing(info) + ...getPricing(info), + isOpen: info.status !== 'closed' }); } From 6bad996f078b4a2554af77035a79531c94fc1aac Mon Sep 17 00:00:00 2001 From: Felix Wiedenbach Date: Thu, 12 May 2022 17:40:21 +0200 Subject: [PATCH 2/2] prepares release 2.3.1 --- CHANGELOG.md | 8 +------- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cfa5bfa..96601b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,11 @@ # MMM-Fuel Changelog -## [Unreleased] +## [2.3.1] ### Fixed * Tankerkoenig prices for requests with `stationIds` -### Added - -### Changed - -### Removed - ## [2.3.0] MagicMirror² version >= 2.15.0 required. diff --git a/package-lock.json b/package-lock.json index 60909ea..5ccd5ec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mmm-fuel", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9528313..48efdad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mmm-fuel", - "version": "2.3.0", + "version": "2.3.1", "description": "Gas Station price Module for MagicMirror2", "scripts": { "lint": "eslint . && stylelint **/*.css",