Update QuoteRepository.cs
syntax cleanup
This commit is contained in:
1 parent
72de465c34
commit
0a55c6f09c
1 file changed
+1
-1
@@ -28,7 +28,7 @@ namespace NadekoBot.Services.Database.Repositories.Impl
|
||||
var rngk = new NadekoRandom();
|
||||
lowertext = text.ToLowerInvariant();
|
||||
uppertext = text.ToUpperInvariant();
|
||||
return _set.Where(q => q.Text.Contains(text) || q.Text.Contains(lowertext) || q.Text.Contains(uppertext) && q.GuildId == guildId && q.Keyword == keyword).OrderBy(q => rngk.Next()).FirstOrDefaultAsync();
|
||||
return _set.Where(q => q.GuildId == guildId && q.Keyword == keyword && (q.Text.Contains(text) || q.Text.Contains(lowertext) || q.Text.Contains(uppertext))).OrderBy(q => rngk.Next()).FirstOrDefaultAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user