Potential fix for option saving

This commit is contained in:
2022-01-25 23:34:37 +03:00
parent 41b49370f9
commit 8ca58f7596
7 changed files with 23 additions and 10 deletions
@@ -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;
}