Skip to content

Commit

Permalink
fix(api): add missed usages update in keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont authored Sep 15, 2023
1 parent bc54309 commit 805be1f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/internal/impl_protected/keywords/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 805be1f

Please sign in to comment.