mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Potential fix for option saving
This commit is contained in:
@@ -47,7 +47,7 @@ namespace West.Entertainment.Handler.Fun
|
||||
|
||||
var animationFileOption = await GetAnimationFileOption();
|
||||
animationFileOption.SetValue(animation.FileId);
|
||||
_db.Update(animationFileOption);
|
||||
_db.AddOrUpdate(animationFileOption);
|
||||
}
|
||||
|
||||
// ReSharper disable once MemberCanBeProtected.Global
|
||||
@@ -77,7 +77,7 @@ namespace West.Entertainment.Handler.Fun
|
||||
replyToMessageId: GetMessageIdToReply() ?? Message?.MessageId);
|
||||
|
||||
nextUseOption.SetValue(DateTime.Now + Cooldown);
|
||||
_db.Update(nextUseOption);
|
||||
_db.AddOrUpdate(nextUseOption);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user