fix: set cache user nil

This commit is contained in:
vilet.yy 2021-06-21 17:12:13 +08:00
parent 0af08bc967
commit 2d37df1c00
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ class ResetUserCacheJob < ApplicationJob
queue_as :cache
def perform(user)
return if user.nil?
Cache::UserFollowCountService.new(user).reset
Cache::UserIssueCountService.new(user).reset
Cache::UserProjectCountService.new(user).reset