aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-09-19 13:21:26 -0700
committerAdam Soltys <[email protected]>2024-09-19 13:21:26 -0700
commit718e3541cffe2103512b19f4945dfcc79813555d (patch)
treed61011bca201d4131df45423d7afb62d70c2f0f9
parenta8dce552da00fcdd144dbc2a39d660c342d4c7b5 (diff)
downloadcoinos-server-718e3541cffe2103512b19f4945dfcc79813555d.tar.gz
coinos-server-718e3541cffe2103512b19f4945dfcc79813555d.zip
explode result
-rw-r--r--lib/nwc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index 61e2192b..ad74c680 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -33,7 +33,7 @@ export default () => {
let user = await g(`user:${uid}`);
let result = await handle(method, params, user);
- let payload = JSON.stringify({ result_type: method, result });
+ let payload = JSON.stringify({ result_type: method, ...result });
content = await nip04.encrypt(sk, pubkey, payload);
let response: UnsignedEvent = {