aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-03-08 04:31:34 +0000
committerAdam Soltys <[email protected]>2024-03-08 04:31:34 +0000
commit972ea530e8139a0357b6b45ccdf9742d19ba6a26 (patch)
treeeb2774d174c12e7304694d1793811d0ae0abf685 /index.js
parent2bd73639038bbc9cd4c75758eda685c89011231f (diff)
downloadcoinos-server-972ea530e8139a0357b6b45ccdf9742d19ba6a26.tar.gz
coinos-server-972ea530e8139a0357b6b45ccdf9742d19ba6a26.zip
validate tips
Diffstat (limited to 'index.js')
-rw-r--r--index.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.js b/index.js
index cd5781ae..a082632a 100644
--- a/index.js
+++ b/index.js
@@ -114,13 +114,17 @@ app.post("/requests/delete", auth, requests.destroy);
app.post("/shopify/:id", shopify);
app.post("/hidepay", admin, users.hidepay);
- app.post("/unlimit", admin, users.unlimit);
+app.post("/unlimit", admin, users.unlimit);
let host = process.env.HOST || "0.0.0.0";
let port = process.env.PORT || 3119;
app.listen({ host, port });
-let logerr = (e) => e.message.startsWith("MASK") || console.log(e);
+let logerr = (e) =>
+ e.message.includes("MASK") ||
+ e.message.startsWith("Rate") ||
+ console.log(e);
+
process.on("unhandledRejection", logerr);
process.on("uncaughtException", logerr);