mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
Remove extra kind from example
This commit is contained in:
parent
35e7eb01d6
commit
b10a3538b1
4
88.md
4
88.md
|
@ -88,7 +88,7 @@ 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;
|
||||
|
@ -96,7 +96,7 @@ const fetchVoteEvents = (filterPubkeys: string[]) => {
|
|||
if (pollExpiration) {
|
||||
resultFilter.until = Number(pollExpiration);
|
||||
}
|
||||
poolRef.current.subscribeMany(relays, [resultFilter], {
|
||||
pool.subscribeMany(relays, [resultFilter], {
|
||||
onevent: handleResultEvent,
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user