Skip to content

Commit

Permalink
querySync does not take an array
Browse files Browse the repository at this point in the history
  • Loading branch information
franzaps authored and fiatjaf committed Apr 8, 2024
1 parent 5c7e9c8 commit f306cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ let h = pool.subscribeMany(
await Promise.any(pool.publish(relays, newEvent))
console.log('published to at least one relay!')

let events = await pool.querySync(relays, [{ kinds: [0, 1] }])
let events = await pool.querySync(relays, { kinds: [0, 1] })
let event = await pool.get(relays, {
ids: ['44e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245'],
})
Expand Down

0 comments on commit f306cec

Please sign in to comment.