mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Fix null reference.
This commit is contained in:
@@ -42,7 +42,7 @@ namespace West.Entertainment.Handler
|
|||||||
var msg = new HtmlString().Bold("Кулдауны:").Br();
|
var msg = new HtmlString().Bold("Кулдауны:").Br();
|
||||||
foreach (var cd in cds)
|
foreach (var cd in cds)
|
||||||
{
|
{
|
||||||
var opt = await _db.UserValues.FindOption(Chat.Id, $"{cd}NextUse");
|
var opt = await _db.UserValues.FindOrCreateOption(Chat.Id, $"{cd}NextUse");
|
||||||
var val = opt.GetValue<DateTime>();
|
var val = opt.GetValue<DateTime>();
|
||||||
if (val == default)
|
if (val == default)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user