fix(dolist): notify us when contact status is not found
This commit is contained in:
parent
bc56f14a72
commit
21df038056
1 changed files with 8 additions and 1 deletions
|
@ -154,7 +154,14 @@ module Dolist
|
|||
|
||||
fields = post(url, body).fetch("FieldList", [])
|
||||
|
||||
return nil if fields.empty?
|
||||
if fields.empty?
|
||||
Sentry.with_scope do |scope|
|
||||
scope.set_extra(:email, email_address)
|
||||
Sentry.capture_message("Dolist::API: contact not found")
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
|
||||
fields.find { _1['ID'] == 72 }.fetch('Value')
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue