aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-03-01 03:39:00 +0000
committerAdam Soltys <[email protected]>2023-03-01 03:39:10 +0000
commit62f514de9f0e8f4d935246aa4081b9c82e0f5b0a (patch)
treeb1b2105c5e46fe7aa400175f63699b36253cb861
parentf8817d10b2a37a7ce89f1c0f7fb0c2646319ec3e (diff)
downloadcoinos-server-62f514de9f0e8f4d935246aa4081b9c82e0f5b0a.tar.gz
coinos-server-62f514de9f0e8f4d935246aa4081b9c82e0f5b0a.zip
pass response to bail function
-rw-r--r--routes/nostr.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/nostr.js b/routes/nostr.js
index a84b1bff..d9a5e841 100644
--- a/routes/nostr.js
+++ b/routes/nostr.js
@@ -6,7 +6,7 @@ import { pool, q } from "$lib/nostr";
export default {
async event({ params: { id } }, res) {
let event = await g(`ev:${id}`);
- if (!event) return bail("event not found");
+ if (!event) return bail(res, "event not found");
let { pubkey } = event;