Move checkFetchStatus into NodelHelper

This commit is contained in:
rejas
2021-04-24 09:14:08 +02:00
committed by veeck
parent 90aa50bb11
commit b212641069
5 changed files with 13 additions and 17 deletions

View File

@@ -5,8 +5,8 @@
* MIT Licensed.
*/
const CalendarUtils = require("./calendarutils");
const FetcherHelper = require("fetcher_helper");
const Log = require("logger");
const NodeHelper = require("node_helper");
const ical = require("node-ical");
const fetch = require("node-fetch");
const digest = require("digest-fetch");
@@ -63,7 +63,7 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
}
fetcher
.then(FetcherHelper.checkStatus)
.then(NodeHelper.checkFetchStatus)
.then((response) => response.text())
.then((responseData) => {
let data = [];