Skip to content

Commit

Permalink
Change conditions order in Questions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmarmillod authored Aug 5, 2024
1 parent 41ed8da commit d9d9a1b
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 d9d9a1b

Please sign in to comment.