From a6adeccd991a09a5f0955ad78ffd85a8765c1537 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 2 Jan 2020 20:08:57 -0800 Subject: [PATCH] Remove type-o of double + + in string concat Signed-off-by: James Ketrenos --- server/routes/photos.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/routes/photos.js b/server/routes/photos.js index 7787782..073f14f 100755 --- a/server/routes/photos.js +++ b/server/routes/photos.js @@ -563,7 +563,8 @@ router.get("/holiday/:holiday", function(req, res/*, next*/) { startYear = date.year; endYear = date.year; } - } + }' + holidayName = date ? req.params.holiday : Object.getOwnPropertyNames(lookup)[0]; console.log("Searching for holiday: " + holidayName); /* Lookup the date for the holiday on every year from 'startYear' (1990) to today */ @@ -601,9 +602,7 @@ router.get("/holiday/:holiday", function(req, res/*, next*/) { let direction = extraDays < 0 ? -1 : 1; for (let i = 0; i <= Math.abs(extraDays); i++) { - let comparison = "strftime('%Y-%m-%d',taken)='" - + holiday.format("YYYY-MM-DD") + - + "'"; + let comparison = "strftime('%Y-%m-%d',taken)='" + holiday.format("YYYY-MM-DD") + "'"; /* If no holiday has been set yet, start the comparison function passed to WHERE * otherwise append it with OR. */ if (!dayIsHoliday) {