diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/app.ts | 2 | ||||
| -rw-r--r-- | lib/nwc.ts | 16 |
2 files changed, 8 insertions, 10 deletions
@@ -30,7 +30,6 @@ const resLogger = pino(pino.destination("res")); app.addHook("preHandler", async (req) => { const url = req.raw.url; const ignore = [ - "/login", "/ws", "/me", "/confirm", @@ -42,7 +41,6 @@ app.addHook("preHandler", async (req) => { "/subscriptions", "/accounts", "/contacts", - "/users", ]; if (ignore.some((path) => url.startsWith(path))) return; @@ -176,14 +176,14 @@ const handle = (method, params, ev, app, user) => } if (max_amount > 0 && spent + amount > max_amount) { - warn( - "budget exceeded", - pubkey, - user?.username, - spent, - amount, - max_amount, - ); + // warn( + // "budget exceeded", + // pubkey, + // user?.username, + // spent, + // amount, + // max_amount, + // ); return error({ code: "QUOTA_EXCEEDED", message: `Budget exceeded: ${spent + amount} of ${max_amount}`, |
