diff --git a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs index 5b8427c8..a012fbcc 100644 --- a/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs +++ b/src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs @@ -49,10 +49,11 @@ namespace NadekoBot.Modules.Utility keyword = keyword.ToUpperInvariant(); Quote quote; -// using (var uow = DbHandler.Instance.GetUnitOfWork()) -// { + using (var uow = DbHandler.Instance.GetUnitOfWork()) + { // quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(channel.Guild.Id, keyword).ConfigureAwait(false); -// } + quote = await uow.Quotes.GetRandomQuoteByKeywordAsync(keyword, keyword).ConfigureAwait(false); + } if (quote == null) return;