forked from Gitlink/forgeplus
change bug in balanceQuery
This commit is contained in:
parent
56e9a9175d
commit
c0515b9e7f
|
@ -12,8 +12,8 @@ class Blockchain::BalanceQuery < ApplicationQuery
|
||||||
token_list = find_repo_with_token(params["user_id"])
|
token_list = find_repo_with_token(params["user_id"])
|
||||||
result_list = []
|
result_list = []
|
||||||
token_list.each do |t|
|
token_list.each do |t|
|
||||||
owner = User.find_by(id: t['username'].to_i)
|
|
||||||
project = Project.find_by(id: t['token_name'].to_i)
|
project = Project.find_by(id: t['token_name'].to_i)
|
||||||
|
owner = User.find_by(id: project.user_id)
|
||||||
if owner.nil? || project.nil?
|
if owner.nil? || project.nil?
|
||||||
else
|
else
|
||||||
balance = t['balance']
|
balance = t['balance']
|
||||||
|
|
Loading…
Reference in New Issue