fix(dolist): don't fail on error when contact does not exist yet
This commit is contained in:
parent
2b2d65de87
commit
049219a4a2
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ module Dolist
|
|||
}
|
||||
}.to_json
|
||||
|
||||
post(url, body)["FieldList"].find { _1['ID'] == 72 }['Value']
|
||||
fields = post(url, body).fetch("FieldList", [])
|
||||
|
||||
return nil if fields.empty?
|
||||
|
||||
fields.find { _1['ID'] == 72 }.fetch('Value')
|
||||
end
|
||||
|
||||
def ignorable_error?(response, mail)
|
||||
|
|
Loading…
Reference in a new issue