Update QuoteCommands.cs

This commit is contained in:
samvaio 2016-11-23 04:30:44 +05:30 committed by GitHub
parent 13d7ec2805
commit 6217ec9668

View File

@ -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;