Skip to content

Commit e189843

Browse files
authored
Merge pull request #24 from 2hdlockness/dev
v1.1.3: Quick Fix
2 parents b651b54 + 601d8e9 commit e189843

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "MMM-Linky",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "Un module pour récupérer et afficher les données de consommation Linky sur MagicMirror.",
55
"keywords": [
66
"MagicMirror",
@@ -63,5 +63,5 @@
6363
"stylelint-config-standard": "^37.0.0",
6464
"stylelint-prettier": "^5.0.3"
6565
},
66-
"rev": "250226"
66+
"rev": "250301"
6767
}

src/node_helper.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ module.exports = NodeHelper.create({
246246
calculateDates () {
247247
const endDate = dayjs().format("YYYY-MM-DD");
248248
var start = dayjs();
249-
if (this.config.annee_n_minus_1 === 1) start = start.subtract(1, "year");
250249

251250
switch (this.config.periode) {
252251
case 1:
@@ -264,6 +263,7 @@ module.exports = NodeHelper.create({
264263
return null;
265264
}
266265

266+
if (this.config.annee_n_minus_1 === 1) start = start.subtract(1, "year");
267267
const startDate = dayjs(start).format("YYYY-MM-DD");
268268

269269
return { startDate, endDate };

0 commit comments

Comments
 (0)