diff options
| author | Adam Soltys <[email protected]> | 2025-01-18 22:50:31 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-18 22:50:31 -0800 |
| commit | bdf81e9234e11c7da63ab442806b800eee212727 (patch) | |
| tree | 44ecec1ad0f038059d6dc9e70413a320dc13fbdc | |
| parent | a328ce2a57e9d2982e491c6ec6d48ec70cd8b335 (diff) | |
| download | coinos-server-bdf81e9234e11c7da63ab442806b800eee212727.tar.gz coinos-server-bdf81e9234e11c7da63ab442806b800eee212727.zip | |
fix zap amount
| -rw-r--r-- | routes/nostr.ts | 4 |
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); |
