From 718e3541cffe2103512b19f4945dfcc79813555d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 19 Sep 2024 13:21:26 -0700 Subject: explode result --- lib/nwc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { -- cgit v1.2.3