From de717dbdb9cf4d3467540cd2b9016f86da109083 Mon Sep 17 00:00:00 2001 From: GermanBluefox Date: Wed, 18 Sep 2024 21:19:55 +0800 Subject: [PATCH] Fixed news --- info/news.json | 3 ++- info/processNews.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/info/news.json b/info/news.json index 27cc87b93..e7d13e5a4 100644 --- a/info/news.json +++ b/info/news.json @@ -523,6 +523,7 @@ "created": "2023-12-11T11:00:00.000Z", "date-end": "2024-01-07T23:00:00.000Z" }, + { "title": { "en": "Adapter landroid is deprecated now", @@ -768,4 +769,4 @@ "egigeozone": "installed" } } -] \ No newline at end of file +] diff --git a/info/processNews.js b/info/processNews.js index f860fc542..5f044dc6e 100644 --- a/info/processNews.js +++ b/info/processNews.js @@ -1,6 +1,6 @@ const {readFileSync, writeFileSync} = require('node:fs'); -const json = readFileSync('news.json', 'utf8'); +const json = readFileSync(`${__dirname}/news.json`, 'utf8'); let news; try { news = JSON.parse(json);