advisors_command_client 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5aeebf86a4c6f6bae609aa928dc58edb8376dee
4
- data.tar.gz: b3e58ad73336dd6295e7f3d96db8a80062a2e69e
3
+ metadata.gz: 55a3fa4b5e3510a41682d40394f40062adc3c932
4
+ data.tar.gz: 9e9595d915f084d34cc96664ff49acca3bbfa7a7
5
5
  SHA512:
6
- metadata.gz: fb01f93fb130bb3cfd00d3c1fcd6551b9196fe80342968a8a739864708f0112541db6e5071e2fbfb1e0945b5dbd149261f76e1673dd0ae578f9a9f13ebecf95d
7
- data.tar.gz: 78c5472141980d94d788769e0d90b9ea1783ca79add4739d0acbc4230ee09b7d2e58697b7fd71bd4da2fb13b5bd6fe7b556512fe1954e0ece771176192fdcbf2
6
+ metadata.gz: b9de4c0aabcca9678b585ff4b6c19aeb088447decc287cd0e99dfd3e40689bab3fbcb93444a32d4aa73bc2e2c3dac2f47fbb2499f115edd24143ae2ce7f7138a
7
+ data.tar.gz: c5d5454eb1cf782bc1f41202b69f50d7b737a897139b70bc32128534e55a0a7f537c23c67162bbfea28de76580f6450978070532f26776339c7468c8bbfc97d6
@@ -8,8 +8,9 @@ module AdvisorsCommandClient
8
8
  def search(query)
9
9
  response = @connection.get('search', {search: query, from: 'orocrm_contact'})
10
10
  if response.success?
11
- return Array(response.body['data']).map do |obj|
11
+ return Parallel.map(Array(response.body['data'])) do |obj|
12
12
  begin
13
+ next unless obj['record_string'].present?
13
14
  self.find(obj['record_id'].to_i)
14
15
  rescue Faraday::Error::ParsingError
15
16
  puts "Error parsing response for contact ID: #{obj['record_id']}"
@@ -1,3 +1,3 @@
1
1
  module AdvisorsCommandClient
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advisors_command_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Ostrowski