Skip to content

Commit

Permalink
Merge pull request #19 from fredmarmillod/patch-1
Browse files Browse the repository at this point in the history
Change conditions order in Questions.php
  • Loading branch information
joshembling authored Aug 5, 2024
2 parents 41ed8da + d9d9a1b commit ffddae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function userQuestion(string $user_question): void
]);
}

if ($laragenie->exists && config('laragenie.database.fetch') && ! $ai) {
if (config('laragenie.database.fetch') && $laragenie->exists && ! $ai) {
$this->textOutput($laragenie->answer);
} else {
$results = (array) $this->askBot($formattedQuestion);
Expand Down

0 comments on commit ffddae7

Please sign in to comment.