We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Looks like we have a bug with the template preview function.
sparkpost.templates.preview('template-id', { substitution_data: {}, draft: false })
This code will actually preview the draft since the code is falsey checking the draft option. We need to update it to check if the object has the draft property, instead of if the value is truthy. Line with the issue: https://github.com/SparkPost/node-sparkpost/blob/master/lib/templates.js#L143
draft
You can work around it by setting draft to "false" (as a string).
"false"
The text was updated successfully, but these errors were encountered:
jgzamora
No branches or pull requests
Looks like we have a bug with the template preview function.
This code will actually preview the draft since the code is falsey checking the
draft
option.We need to update it to check if the object has the draft property, instead of if the value is truthy.
Line with the issue: https://github.com/SparkPost/node-sparkpost/blob/master/lib/templates.js#L143
You can work around it by setting
draft
to"false"
(as a string).The text was updated successfully, but these errors were encountered: