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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55a3fa4b5e3510a41682d40394f40062adc3c932
|
|
4
|
+
data.tar.gz: 9e9595d915f084d34cc96664ff49acca3bbfa7a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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'])
|
|
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']}"
|