From 6217ec96684934c10663d838ff9b3d56136b790b Mon Sep 17 00:00:00 2001 From: samvaio Date: Wed, 23 Nov 2016 04:30:44 +0530 Subject: [PATCH] Update QuoteCommands.cs --- src/NadekoBot/Modules/Utility/Commands/QuoteCommands.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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;