diff --git a/src/db/client.js b/src/db/client.js index ae93f01..25ff856 100644 --- a/src/db/client.js +++ b/src/db/client.js @@ -195,7 +195,7 @@ function listDatabases(server, database, filter) { async function getQuerySelectTop(server, database, table, schema, limit) { checkIsConnected(server, database); let limitValue = limit; - if (typeof _limit === 'undefined') { + if (typeof limit === 'undefined') { await loadConfigLimit(); limitValue = typeof limitSelect !== 'undefined' ? limitSelect : DEFAULT_LIMIT; }