diff --git a/src/queries.ts b/src/queries.ts index 0734d98..633f9ee 100644 --- a/src/queries.ts +++ b/src/queries.ts @@ -34,13 +34,13 @@ async function getFeed(pubkey: string, params: PaginationParams): Promise = { authors, kinds: [1], ...params, }; - const results = await getFiltersMixer([filter], { timeout: 5000 }) as Event<1>[]; + const results = await getFiltersMixer([filter], { timeout: 5000 }); return results.sort(eventDateComparator); } @@ -69,7 +69,7 @@ async function getAncestors(event: Event<1>, result = [] as Event<1>[]): Promise } function getDescendants(eventId: string): Promise[]> { - return getFiltersMixer([{ kinds: [1], '#e': [eventId] }], { limit: 200, timeout: 2000 }) as Promise[]>; + return getFiltersMixer([{ kinds: [1], '#e': [eventId] }], { limit: 200, timeout: 2000 }); } export { getAncestors, getAuthor, getDescendants, getEvent, getFeed, getFollows, getPublicFeed };