aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routes/nostr.ts4
1 files 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);