From 61b8203ff75c1b1eb0848530653b8f058ac34bf1 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Fri, 16 Oct 2020 03:09:34 +0000 Subject: [PATCH] fix variable name typo on undefined check --- src/db/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }