Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(api/agent/list): fix bad clickhouse date parsing (#4471)
Gergő Móricz6180eb4290c4
diff --git a/apps/api/src/controllers/v2/agent-list.ts b/apps/api/src/controllers/v2/agent-list.tsindex 875d50cfc..b1070ef95 100644--- a/apps/api/src/controllers/v2/agent-list.ts+++ b/apps/api/src/controllers/v2/agent-list.ts@@ -99,10 +99,10 @@ export async function agentListController(// Fetch one extra row so we can tell whether another page exists// instead of emitting a next cursor whenever the page is full.limit: limit + 1,- before:- parsedBefore !== undefined- ? new Date(parsedBefore).toISOString()- : new Date().toISOString(),+ before: (parsedBefore !== undefined+ ? new Date(parsedBefore).toISOString()+ : new Date().toISOString()+ ).slice(0, -1), // slice Z off the end of the ISO string because clickhouse hates it},format: "JSONEachRow",});