Update QuoteCommands.cs

This commit is contained in:
samvaio 2016-11-23 04:23:50 +05:30 committed by GitHub
parent 555779e3ca
commit 13d7ec2805

View File

@ -49,11 +49,10 @@ 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 Quotes.GetRandomQuoteByKeywordAsync(keyword).ConfigureAwait(false);
}
// }
if (quote == null)
return;