-
Notifications
You must be signed in to change notification settings - Fork 31
adds functionality for updating contacts on hubspot when their phase is changed #1099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
jaredatron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Where are the tests?
869c3f1 to
5b8e182
Compare
|
Test added, and created files for the functions that were in index |
jaredatron
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assuming @prattsj doesn't spot anything this looks good to me
| contactProfileByEmail: email => `/contacts/v1/contact/email/${email}/profile`, | ||
| contactProfileByVID: vid => `/contacts/v1/contact/vid/${vid}/profile`, | ||
| } | ||
| import {default as getContactByEmail} from './getContactByEmail' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a linter that prefers:
import {default as getContactByEmail} from './getContactByEmail'over:
import getContactByEmail from './getContactByEmail'There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes we do. I think it's xo
|
Please dismiss my previous review - was an accident. Intended for another PR reviewed. |
Fixes #1070
Overview
Whenever a member's phase has been changed in echo, the phase property of the HubSpot contact for that member should be updated as well in a worker
Notes
Also extracts functions from index allowing only importing/exporting