Skip to content

Commit

Permalink
Merge pull request #39 from CommandAI/pre-release
Browse files Browse the repository at this point in the history
bugfix
  • Loading branch information
rootedbox authored Jul 13, 2024
2 parents b987706 + fd3123e commit ca3a1b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiq.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ async function getConnectionConfig(dbConfigs, nameOrFilePath) {


async function generateQuery(command, client, dbAdapter) {
if (USE_PROMPT) { const spinner = ora(gradient.cristal("Thinking...")).start(); }
let spinner = null;
if (USE_PROMPT) { spinner = ora(gradient.cristal("Thinking...")).start(); }
const queryString = await client.generateQuery(command, dbAdapter);
if (USE_PROMPT) { spinner.succeed(gradient.cristal("Query generated.")); }
consoleLog(queryString);
Expand Down

0 comments on commit ca3a1b8

Please sign in to comment.