aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.ts')
-rw-r--r--lib/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.ts b/lib/utils.ts
index 7a3d4c13..6f032cc7 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -20,7 +20,7 @@ export const wait = async (f, s = 300, n = 50) => {
export const prod = process.env.NODE_ENV === "production";
-export const bail = (res, msg) => res.code(500).send(msg);
+export const bail = (c, msg) => c.json(msg, 500);
export const SATS = 100000000;
export const sats = (n) => Math.round(n * SATS);