Skip to content

Commit

Permalink
api: fix host IP address filter by location
Browse files Browse the repository at this point in the history
  • Loading branch information
aither64 committed Oct 21, 2020
1 parent cc9125d commit 614ac24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/lib/vpsadmin/api/resources/host_ip_address.rb
Expand Up @@ -78,7 +78,7 @@ def query

if input[:location]
locs = ::LocationNetwork.where(location: input[:location]).pluck(:network_id)
ips = ips.where(networks: {id: locs.id})
ips = ips.where(networks: {id: locs})
end

if input.has_key?(:vps)
Expand Down

0 comments on commit 614ac24

Please sign in to comment.