mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-26 01:10:31 +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)
|
||||
token-key access-token)]
|
||||
(when new-user?
|
||||
(hubspot/create-hubspot-contact (:email user)
|
||||
(:name user "")
|
||||
(:login user)))
|
||||
(try
|
||||
(hubspot/create-hubspot-contact (:email user)
|
||||
(:name user "")
|
||||
(:login user))
|
||||
(catch Throwable t
|
||||
(log/error "Failed to create hubspot contact" t))))
|
||||
(assoc (found (str (env :server-address) "/app"))
|
||||
:session {:identity user}))))))
|
||||
|
Loading…
x
Reference in New Issue
Block a user