Skip to content

Commit

Permalink
fix query return
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed Oct 1, 2024
1 parent d96866d commit 450cb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/Markov.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class MarkovChain extends MarkovChainBase {
} else {
for (const res of resArr) {
if (!res.message.endsWith(sentence)) {
resolve(res);
resolve(res.message);
return;
}
}
Expand Down

0 comments on commit 450cb37

Please sign in to comment.