Skip to content

Commit

Permalink
Merge pull request #7 from arikchakma/Dev
Browse files Browse the repository at this point in the history
Email notification
  • Loading branch information
arikchakma authored Mar 7, 2022
2 parents 88bde98 + 71c13b1 commit b71aaac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default async function handler(
const API_KEY = process.env.REVUE_API_KEY;
const response = await fetch(`https://www.getrevue.co/api/v2/subscribers`, {
method: 'POST',
body: JSON.stringify({ email: email, double_opt_in: false }),
body: JSON.stringify({ email: email, double_opt_in: true }),
headers: {
Authorization: `Token ${API_KEY}`,
'Content-Type': 'application/json'
Expand Down

1 comment on commit b71aaac

@vercel
Copy link

@vercel vercel bot commented on b71aaac Mar 7, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.