aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@gmail.com>2022-10-25 20:32:10 +0300
committerJoel Kronqvist <work.joelkronqvist@gmail.com>2022-10-25 20:32:10 +0300
commit513d2cb863136b5835469539a00d68a4c7d010e5 (patch)
treee9e39bc87a5f3917488280a27473ca74f1165558
parent04726443dce96f4b41f3506a2e6570db52b944ef (diff)
downloadLYLLRuoka-513d2cb863136b5835469539a00d68a4c7d010e5.tar.gz
LYLLRuoka-513d2cb863136b5835469539a00d68a4c7d010e5.zip
Changed null to undefined as it should was meant to be. TL; DR: a typo.
-rw-r--r--dbparse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbparse.js b/dbparse.js
index 0f029b4..a3065c3 100644
--- a/dbparse.js
+++ b/dbparse.js
@@ -145,7 +145,7 @@ async function writeShift(weekday, shiftId, shiftLine, courseLine, DB)
`INSERT IGNORE INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
[courseName1, teacher, className1]
));
- if (courseName2 !== null) {
+ if (courseName2 !== undefined) {
dbOperations.push(DB.execute(
`INSERT IGNORE INTO shifts VALUES (${weekday}, ${shiftId}, ?, ?, ?)`,
[courseName2, teacher, className2]