Skip to content

Commit

Permalink
fix: clear cache after poll ruling
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 20, 2023
1 parent 9fa698d commit 1d23d42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/logic/poll/ruling.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func (s *sPoll) DoRuling(
return gerror.Wrap(e, "赋予用户积分失败")
}
service.Cache().ClearPollUserCache(ctx, uint(pollLog.UserId))
service.Cache().ClearCacheAfterPollUpdated(ctx, uint(pollLog.UserId), uint(poll.Id), poll.SentenceUuid)
}

// DoReviewedNotification
Expand Down

0 comments on commit 1d23d42

Please sign in to comment.