lib/http_service/naviai.rb in navi_client-1.4.3 vs lib/http_service/naviai.rb in navi_client-1.4.4

- old
+ new

@@ -2,13 +2,10 @@ module HTTPService class NaviAI def self.start(filepath:, client_id: nil, client_type:, token:, email:) - go_url = 'http://localhost:9090/v2/metas' - if client_type == 'cloud' - go_url = 'http://34.214.134.104:9090/v2/metas' - end + go_url = "#{ENV['parser_url']}/v2/metas" HTTParty.post(go_url, body: { client_id: client_id, client_type: client_type, list_meta_path: filepath, token: token, email: email }.to_json, timeout: 400) end def self.generate_csv(url, token) HTTParty.post(url, headers: {"Authorization": token})