Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion core/src/exchanges/polymarket/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ export class PolymarketFetcher implements IExchangeFetcher<PolymarketRawEvent, P
events = rawEvents.filter(filterClosed);
}

const lowerQuery = params.query!.toLowerCase();
if (!params.query) {
throw new Error('params.query is required for event search');
}
const lowerQuery = params.query.toLowerCase();
const searchIn = params.searchIn || 'title';

return events.filter((event: any) => {
Expand Down
Loading