aboutsummaryrefslogtreecommitdiff
path: root/src/server/routes/getSchedule.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-06-26 21:46:41 +0200
committerNoah Loomans <noahloomans@gmail.com>2018-06-26 21:46:41 +0200
commit315adeb5e2012b7f7bcfcd1478f9d6dd2cc1092d (patch)
tree17ecdc44866845b679ca69337041856df3cab33c /src/server/routes/getSchedule.js
parentd95009ed42a3a94c947bccbed8a436cbf6b9306c (diff)
Update code to comply with new styling
Diffstat (limited to 'src/server/routes/getSchedule.js')
-rw-r--r--src/server/routes/getSchedule.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/routes/getSchedule.js b/src/server/routes/getSchedule.js
index 7a84dd2..2ade31a 100644
--- a/src/server/routes/getSchedule.js
+++ b/src/server/routes/getSchedule.js
@@ -48,8 +48,9 @@ function currentWeekNumber() {
async function getSchedule(userType, userValue, week, scheduleType = 'dag') {
const { users } = await getScheduleData();
- const user =
- users.filter(user_ => user_.type === userType && user_.value === userValue)[0];
+ const user = users.filter(user_ => (
+ user_.type === userType && user_.value === userValue
+ ))[0];
if (!user) {
throw new Error(`${userType}/${userValue} is not in the user index.`);