querySync does not take an array

This commit is contained in:
franzap 2024-04-07 20:20:24 +00:00 committed by fiatjaf_
parent 5c7e9c8f36
commit f306cec716
1 changed files with 1 additions and 1 deletions

View File

@ -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'],
})