Browse Source

add project.nil? in

pull/319/head
nigel007 5 years ago
parent
commit
f8fa3c2b31
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/queries/blockchain/balance_query.rb

+ 3
- 0
app/queries/blockchain/balance_query.rb View File

@@ -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…
Cancel
Save