Skip to content

Commit

Permalink
fix publishEvent: all -> allSettled
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Mar 17, 2024
1 parent c8a0755 commit 7653976
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/publisher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nostrwatch/publisher",
"version": "0.4.1",
"version": "0.4.2",
"type": "module",
"description": "Library for publishing nostr.watch relay status and publisher registration events",
"main": "index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/publisher/src/Publisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ export class Publisher {
const pool = new SimplePool();
const relays = config.publisher.to_relays
let pubs = pool.publish(relays, signedEvent)
await Promise.all( pubs ).catch( e => { log.error(`publishEvent(): Error: ${e}`) })
return Promise.all( pubs )
// await Promise.all( pubs ).catch( e => { log.error(`publishEvent(): Error: ${e}`) })
return Promise.allSettled( pubs )
}

async publishEvents(signedEvents){
Expand Down

0 comments on commit 7653976

Please sign in to comment.