mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-27 17:54:57 +00:00
Error handling for hubspot contact create
This commit is contained in:
parent
9846d3f2e9
commit
a98da5fb2f
@ -48,8 +48,11 @@
|
|||||||
user (assoc (get-or-create-user access-token)
|
user (assoc (get-or-create-user access-token)
|
||||||
token-key access-token)]
|
token-key access-token)]
|
||||||
(when new-user?
|
(when new-user?
|
||||||
|
(try
|
||||||
(hubspot/create-hubspot-contact (:email user)
|
(hubspot/create-hubspot-contact (:email user)
|
||||||
(:name user "")
|
(:name user "")
|
||||||
(:login user)))
|
(:login user))
|
||||||
|
(catch Throwable t
|
||||||
|
(log/error "Failed to create hubspot contact" t))))
|
||||||
(assoc (found (str (env :server-address) "/app"))
|
(assoc (found (str (env :server-address) "/app"))
|
||||||
:session {:identity user}))))))
|
:session {:identity user}))))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user