mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Just use default relays for zap receipt
This commit is contained in:
parent
241a72d532
commit
90fb210de4
@ -112,7 +112,7 @@ export default async function handler(req, res) {
|
|||||||
const signedZapReceipt = finalizeEvent(zapReceipt, foundAddress.relayPrivkey || ZAP_PRIVKEY);
|
const signedZapReceipt = finalizeEvent(zapReceipt, foundAddress.relayPrivkey || ZAP_PRIVKEY);
|
||||||
// Publish zap receipt to relays
|
// Publish zap receipt to relays
|
||||||
const pool = new SimplePool();
|
const pool = new SimplePool();
|
||||||
const relays = foundAddress.defaultRelays || appConfig.defaultRelayUrls || [];
|
const relays = appConfig.defaultRelayUrls || [];
|
||||||
await Promise.any(pool.publish(relays, signedZapReceipt));
|
await Promise.any(pool.publish(relays, signedZapReceipt));
|
||||||
|
|
||||||
// Delete from Redis after successful broadcast
|
// Delete from Redis after successful broadcast
|
||||||
|
Loading…
x
Reference in New Issue
Block a user