diff --git a/crawler/casLogIn.js b/crawler/casLogIn.js index 01a2a31..50c4e13 100644 --- a/crawler/casLogIn.js +++ b/crawler/casLogIn.js @@ -184,7 +184,7 @@ class AES { } randomString(len) { - const str = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz1234567890' + const str = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678' return Array(len) .fill(null) .reduce((s = '') => (s += str.charAt(Math.floor(Math.random() * 48))), '') diff --git a/crawler/school-edge-cases.js b/crawler/school-edge-cases.js index 811c8ec..2e1bfe9 100644 --- a/crawler/school-edge-cases.js +++ b/crawler/school-edge-cases.js @@ -21,7 +21,7 @@ const defaultProps = { module.exports = (schoolName) => schoolName - ? new Proxy(schoolEdgeCases[schoolName], { + ? new Proxy(schoolEdgeCases[schoolName] || {}, { get(target, prop, receiver) { if (target[prop] === undefined) { return defaultProps[prop]