aboutsummaryrefslogtreecommitdiff
path: root/src/server/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/lib')
-rw-r--r--src/server/lib/schools/hetmml/getScheduleData.js (renamed from src/server/lib/getMeetingpointData.js)8
-rw-r--r--src/server/lib/schools/hetmml/getURLOfUser.js (renamed from src/server/lib/getURLOfUser.js)0
2 files changed, 4 insertions, 4 deletions
diff --git a/src/server/lib/getMeetingpointData.js b/src/server/lib/schools/hetmml/getScheduleData.js
index c1de28a..303af6d 100644
--- a/src/server/lib/getMeetingpointData.js
+++ b/src/server/lib/schools/hetmml/getScheduleData.js
@@ -81,7 +81,7 @@ function getAlts(users) {
}));
}
-function getMeetingpointData() {
+function getScheduleData() {
const navbarRequests = [
request('http://www.meetingpointmco.nl/Roosters-AL/doc/dagroosters/frames/navbar.htm', { timeout: 5000 }),
request('http://www.meetingpointmco.nl/Roosters-AL/doc/basisroosters/frames/navbar.htm', { timeout: 5000 }),
@@ -111,9 +111,9 @@ function getMeetingpointData() {
});
}
-function getMeetingpointDataCacheWrapper() {
+function getScheduleDataCacheWrapper() {
if (meetingpointData == null || new Date() - lastUpdate > 30 * 60 * 1000) { // 30 minutes
- return getMeetingpointData().then((meetingpointData_) => {
+ return getScheduleData().then((meetingpointData_) => {
lastUpdate = new Date();
meetingpointData = meetingpointData_;
@@ -124,4 +124,4 @@ function getMeetingpointDataCacheWrapper() {
return Promise.resolve(meetingpointData);
}
-module.exports = debounce(getMeetingpointDataCacheWrapper);
+module.exports = debounce(getScheduleDataCacheWrapper);
diff --git a/src/server/lib/getURLOfUser.js b/src/server/lib/schools/hetmml/getURLOfUser.js
index f44d1a3..f44d1a3 100644
--- a/src/server/lib/getURLOfUser.js
+++ b/src/server/lib/schools/hetmml/getURLOfUser.js