From fee4182c02b292588b9078ba213bf0ba5eeb38ed Mon Sep 17 00:00:00 2001 From: chas-iot Date: Thu, 30 Jul 2020 11:08:55 +0800 Subject: [PATCH] disable the abstractapi provider - part 2 --- src/holidayAPI.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/holidayAPI.js b/src/holidayAPI.js index 19b7b49..ed2feb1 100644 --- a/src/holidayAPI.js +++ b/src/holidayAPI.js @@ -166,8 +166,11 @@ function getNagerDates(api, context, merge, setStatus) { }); } - +// abstractapi changed their free tier in ways that made it no longer supportable function getAbstractAPIDates(api, context, merge, setStatus) { + setStatus('abstractapi no longer supported', context); + merge([], context); + /* const requestDays = 45; const apiDates = []; const ENDPOINT = 'https://holidays.abstractapi.com/v1/?api_key='; @@ -221,6 +224,7 @@ function getAbstractAPIDates(api, context, merge, setStatus) { setStatus(e.message, context); merge([], context); }); + */ } function applyParams(req, params) {