Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Arora committed May 10, 2020
1 parent a532f09 commit 2404a7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/athenaExpress.js
Expand Up @@ -44,11 +44,11 @@ module.exports = class AthenaExpress {
throw new TypeError("Config object not present in the constructor");

if (!query) throw new TypeError("SQL query is missing");

if (query.trim().length === 36 && query.indexOf(" ") === -1) {
const queryString = query.sql.trim() || query.trim()
if (queryString.length === 36 && queryString.indexOf(" ") === -1) {
//indicates that the query is actually a QueryExecutionId
initiateQueryInAthena = false;
queryExecutionId = query
queryExecutionId = queryString
}

try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "athena-express",
"version": "5.3.1",
"version": "5.3.2",
"description": "Athena-Express makes it easier to execute SQL queries on Amazon Athena by consolidating & astracting several methods in the AWS SDK",
"main": "./lib/index.js",
"scripts": {
Expand Down

0 comments on commit 2404a7f

Please sign in to comment.