fix: user rank user_id must exist
This commit is contained in:
parent
1a93477635
commit
2f2655525f
|
@ -16,15 +16,15 @@ class Cache::V2::UserDateRankService < ApplicationService
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_rank
|
def read_rank
|
||||||
user_rank
|
user_rank unless @user_id.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_statistic
|
def read_statistic
|
||||||
user_statistic
|
user_statistic unless @user_id.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
set_user_rank
|
set_user_rank unless @user_id.nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in New Issue