aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = {