forked from Nigel/forgeplus
add project.nil? in
This commit is contained in:
parent
c0515b9e7f
commit
f8fa3c2b31
|
@ -13,6 +13,9 @@ class Blockchain::BalanceQuery < ApplicationQuery
|
|||
result_list = []
|
||||
token_list.each do |t|
|
||||
project = Project.find_by(id: t['token_name'].to_i)
|
||||
if project.nil?
|
||||
next
|
||||
end
|
||||
owner = User.find_by(id: project.user_id)
|
||||
if owner.nil? || project.nil?
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue