fix: user rank user_id must exist

This commit is contained in:
yystopf 2022-02-24 18:07:18 +08:00
parent 1a93477635
commit 2f2655525f
1 changed files with 3 additions and 3 deletions

View File

@ -16,15 +16,15 @@ class Cache::V2::UserDateRankService < ApplicationService
end
def read_rank
user_rank
user_rank unless @user_id.nil?
end
def read_statistic
user_statistic
user_statistic unless @user_id.nil?
end
def call
set_user_rank
set_user_rank unless @user_id.nil?
end
private