We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4256a73 commit 27838e7Copy full SHA for 27838e7
src/backend/quotes/quote-manager.ts
@@ -280,7 +280,7 @@ class QuoteManager {
280
async getRandomQuoteContainingText(text: string): Promise<Quote> {
281
try {
282
const textPattern = new RegExp(`\\b${this.regExpEscape(text)}\\b`, 'i');
283
- const quotes = await this.db.findAsync({ originator: { $regex: textPattern } });
+ const quotes = await this.db.findAsync({ text: { $regex: textPattern } });
284
285
if (!quotes.length) {
286
return;
0 commit comments