diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/passport.js | 6 | ||||
| -rw-r--r-- | lib/sync.js | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/passport.js b/lib/passport.js index 7bf68c13..4580c709 100644 --- a/lib/passport.js +++ b/lib/passport.js @@ -30,8 +30,10 @@ passport = Passport.use( if (user.locked) throw new Error("account is locked"); next(null, user); } catch (e) { - console.log(e); - l.error("problem logging in", e); + if (!e.message.includes("locked")) { + console.log(e); + l.error("problem logging in", e); + } next(null, { username: "guest" }); } } diff --git a/lib/sync.js b/lib/sync.js index dda83eab..d7bdb4c5 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -288,8 +288,8 @@ const sync = async () => { } }; -setTimeout(sync, 5000); -setInterval(sync, 300000); +//setTimeout(sync, 5000); +//setInterval(sync, 300000); app.get( "/conversions", |
