Skip to content
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

1550 confirm patch endpoint #1575

Merged
merged 3 commits into from
Nov 12, 2024
Merged

Conversation

pratishta
Copy link
Contributor

Closes #1550

I tested it with the following request body in Postman:

{ 
    "subscriptions": {
        "confirmed": 1
    }
}

and with a zap_staging_id pulled from Sendgrid contacts.

@pratishta pratishta requested a review from a team as a code owner November 7, 2024 20:30
Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for labs-zap ready!

Name Link
🔨 Latest commit f9755a1
🔍 Latest deploy log https://app.netlify.com/sites/labs-zap/deploys/673374b086ed3800080aa1f1
😎 Deploy Preview https://deploy-preview-1575--labs-zap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pratishta pratishta force-pushed the 1550-confirm-patch-endpoint branch from d9353fb to 6648544 Compare November 7, 2024 21:13
* @returns {object}
*/
async update(environment: string, email: string, custom_fields: object) {
var updated_custom_fields = Object.entries(custom_fields).reduce((acc, curr) => ({ ...acc, [`zap_${environment}_${curr[0]}`]: curr[1] }), {})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we stick with let or const and camelCased variable/parameter names?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want me to update to let and camelCase for the create in here as well ?

@TylerMatteo TylerMatteo force-pushed the 1550-confirm-patch-endpoint branch from cd64fbb to f9755a1 Compare November 12, 2024 15:30
@TylerMatteo TylerMatteo merged commit 0ca02e5 into develop Nov 12, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Confirm Subscriber Endpoint
2 participants