diff options
author | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-10-25 20:32:10 +0300 |
---|---|---|
committer | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-10-25 20:32:10 +0300 |
commit | 513d2cb863136b5835469539a00d68a4c7d010e5 (patch) | |
tree | e9e39bc87a5f3917488280a27473ca74f1165558 | |
parent | 04726443dce96f4b41f3506a2e6570db52b944ef (diff) | |
download | LYLLRuoka-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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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] |