修复:watchable使用project.owner

This commit is contained in:
yystopf 2023-03-24 23:40:20 +08:00
parent 4b5df918fc
commit c7f21fed4f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ module Watchable
score = cal_perc(balance_user, balance_all)
else
contributors = []
result = Gitea::Repository::Contributors::GetService.call(@user, @project.identifier,{q_name: @user.login, q_email: @user.mail})
result = Gitea::Repository::Contributors::GetService.call(@project.owner, @project.identifier,{q_name: @user.login, q_email: @user.mail})
user_contribution = result[:body][0]
commits_all = result[:total_contributions]
score = cal_perc(user_contribution["contributions"], commits_all)