Adding countRows parameter to external API for counting.

This commit is contained in:
mike12345567 2024-06-14 19:01:20 +01:00
parent 1b36d8af51
commit f3ca1d0b1e
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export async function search(
} }
let rows = await handleRequest(Operation.READ, tableId, parameters) let rows = await handleRequest(Operation.READ, tableId, parameters)
let totalRows: number | undefined let totalRows: number | undefined
if (true) { if (countRows) {
totalRows = await handleRequest(Operation.COUNT, tableId, parameters) totalRows = await handleRequest(Operation.COUNT, tableId, parameters)
} }
let hasNextPage = false let hasNextPage = false