1
0

Default limit query results to 1000

This commit is contained in:
Zef Hemel 2023-11-28 11:18:55 +01:00
parent 0bf801f0e8
commit 48986fc6cb

View File

@ -26,6 +26,10 @@ export async function widget(
);
const parsedQuery = astToKvQuery(queryAST[1]);
if (!parsedQuery.limit) {
parsedQuery.limit = ["number", 1000];
}
const eventName = `query:${parsedQuery.querySource}`;
let resultMarkdown = "";