Skip to content

Commit

Permalink
Fix - change keys from space_key to n2yo_Key in .yml, change get_sat_…
Browse files Browse the repository at this point in the history
…position method to n2yo_connection from base service
  • Loading branch information
philmarcu committed Sep 21, 2022
1 parent e168f60 commit 14acf35
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/facades/satellite_facade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def self.create_user_satellite(sat_id, user_id)

def self.get_satellite_position(norad_id)
json = SatelliteService.get_satellite_position(norad_id)
binding.pry
SatellitePosition.new(json)
end

Expand Down
2 changes: 1 addition & 1 deletion app/services/satellite_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.create_user_satellite(sat_id, user_id)
end

def self.get_satellite_position(norad_id)
response = BaseService.n2yo_conn.get("positions/#{norad_id}/39.739/104.990/0/1")
response = BaseService.n2yo_connection.get("positions/#{norad_id}/39.739/104.990/0/1")
BaseService.get_json(response)
end

Expand Down
5 changes: 0 additions & 5 deletions db/migrate/20220918190639_drop_users.rb

This file was deleted.

0 comments on commit 14acf35

Please sign in to comment.