Skip to content

Commit

Permalink
Change CLI webhook to n8n instead of Integromat
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Mar 1, 2021
1 parent 10625b6 commit 7c3f076
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-files-tell.md
@@ -0,0 +1,5 @@
---
"frontity": patch
---

Change CLI webhook to point to n8n instead of Integromat.
19 changes: 11 additions & 8 deletions packages/frontity/src/steps/index.ts
Expand Up @@ -312,12 +312,15 @@ export const subscribe = async (email: string) => {
if (!isEmailValid(email))
throw new Error("Email not valid. Please enter a valid email.");

return fetch("https://hook.integromat.com/gm0b502jo5acuhzko7gszx0kd9r52ofi", {
method: "POST",
body: JSON.stringify({
event: "frontity-subscribe",
email: email.toLowerCase(),
}),
headers: { "Content-Type": "application/json" },
});
return fetch(
"https://n8n.frontity.org/webhook/62923334-59a4-484c-a9c2-632814b94225",
{
method: "POST",
body: JSON.stringify({
event: "frontity-subscribe",
email: email.toLowerCase(),
}),
headers: { "Content-Type": "application/json" },
}
);
};

0 comments on commit 7c3f076

Please sign in to comment.