From bdf81e9234e11c7da63ab442806b800eee212727 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 18 Jan 2025 22:50:31 -0800 Subject: fix zap amount --- routes/nostr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/nostr.ts b/routes/nostr.ts index 854f735f..7e3dfcc7 100644 --- a/routes/nostr.ts +++ b/routes/nostr.ts @@ -253,7 +253,7 @@ export default { const event = await makeZapRequest({ profile: pubkey, event: id, - amount, + amount: amount * 1000, relays: [config.nostr], comment: "", }); @@ -273,7 +273,7 @@ export default { const callback = await getZapEndpoint({ content } as Event); const encodedEvent = encodeURI(JSON.stringify(event)); - const url = `${callback}?amount=${amount * 1000}&nostr=${encodedEvent}`; + const url = `${callback}?amount=${amount}&nostr=${encodedEvent}`; const json = await got(url).json(); res.send(json); -- cgit v1.2.3