diff options
| author | Adam Soltys <[email protected]> | 2025-02-17 22:47:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-02-17 22:47:42 -0800 |
| commit | 184d3a435ced59c9e3c4573e339b975af1127667 (patch) | |
| tree | 0959bb674fbb6761d72414e93f85e76fc2fb102a /lib | |
| parent | c59d608599d1a47e821f58360701d7dededd1146 (diff) | |
| download | coinos-server-184d3a435ced59c9e3c4573e339b975af1127667.tar.gz coinos-server-184d3a435ced59c9e3c4573e339b975af1127667.zip | |
return quota exceeded error
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nwc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -134,7 +134,7 @@ const handle = (method, params, ev, app, user) => if (spent + amount > max_amount) { warn("budget exceeded", pubkey, user?.username, spent, amount, max_amount); return error({ - code: "INTERNAL", + code: "QUOTA_EXCEEDED", message: `Budget exceeded: ${spent + amount} of ${max_amount}`, }); } |
