Remove extra kind from example

This commit is contained in:
Abhay 2024-09-21 12:14:14 +05:30
parent 35e7eb01d6
commit b10a3538b1

4
88.md
View File

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