From 805be1f237cbceb4994d12abb0cf40dff7c9037d Mon Sep 17 00:00:00 2001 From: Satont Date: Fri, 15 Sep 2023 23:31:06 +0300 Subject: [PATCH] fix(api): add missed `usages` update in keywords --- apps/api/internal/impl_protected/keywords/keywords.go | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/internal/impl_protected/keywords/keywords.go b/apps/api/internal/impl_protected/keywords/keywords.go index 6d7c6bc9c..57b941f9e 100644 --- a/apps/api/internal/impl_protected/keywords/keywords.go +++ b/apps/api/internal/impl_protected/keywords/keywords.go @@ -101,6 +101,7 @@ func (c *Keywords) KeywordsUpdate(ctx context.Context, request *keywords.PutRequ keyword.CooldownExpireAt = null.Time{} keyword.IsReply = request.Keyword.IsReply keyword.IsRegular = request.Keyword.IsRegular + keyword.Usages = int(request.Keyword.Usages) if err := c.Db.WithContext(ctx).Save(keyword).Error; err != nil { return nil, err