change port and network_id to bc.sth
This commit is contained in:
parent
68a975d30a
commit
4cfd888414
app/services
|
@ -24,8 +24,8 @@ class BlockchainsService
|
|||
ports = []
|
||||
bcs = Blockchain.find_by_sql("select network_id, port from blockchains where user_id=#{user.id}")
|
||||
bcs.each do |bc|
|
||||
network_ids << bc.network_id unless network_id == nil
|
||||
ports << bc.port unless port == nil
|
||||
network_ids << bc.network_id unless bc.network_id == nil
|
||||
ports << bc.port unless bc.port == nil
|
||||
end
|
||||
Rails.logger.info(network_ids)
|
||||
Rails.logger.info(ports)
|
||||
|
|
Loading…
Reference in New Issue