diff options
| author | Adam Soltys <[email protected]> | 2022-02-26 00:27:21 -0500 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-02-26 00:27:55 -0500 |
| commit | 3098f0c849f696b39714799c6c1663936946e61b (patch) | |
| tree | 1095f9caa720dc9462429ef3a76feff7690690c4 /lib | |
| parent | 46bc3fdc3d5c5da1c7f6ecb27e949da7687398b7 (diff) | |
| download | coinos-server-3098f0c849f696b39714799c6c1663936946e61b.tar.gz coinos-server-3098f0c849f696b39714799c6c1663936946e61b.zip | |
fix rounding errors
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", |
