Skip to content

Commit

Permalink
Remove extra kind from example
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-raizada committed Sep 21, 2024
1 parent 35e7eb0 commit b10a353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 88.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,15 @@ Example for querying polls.
const fetchVoteEvents = (filterPubkeys: string[]) => {
let resultFilter: Filter = {
"#e": [pollEvent.id],
kinds: [1070, 1018],
kinds: [1018],
};
if (filterPubkeys?.length) {
resultFilter.authors = filterPubkeys;
}
if (pollExpiration) {
resultFilter.until = Number(pollExpiration);
}
poolRef.current.subscribeMany(relays, [resultFilter], {
pool.subscribeMany(relays, [resultFilter], {
onevent: handleResultEvent,
});
};
Expand Down

0 comments on commit b10a353

Please sign in to comment.