Skip to content

Commit 175e02e

Browse files
committed
Update Zapier integration to use tags instead of type
1 parent b70ca3a commit 175e02e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/web/pages/api/integrations/zapier/action-new-post.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export default async function handler(
1313
) {
1414
let {
1515
query: { page_secret_key },
16-
body: { title, type, content, status },
16+
body: { title, tags, content, status },
1717
} = req;
1818

19-
if (!page_secret_key || !title || !type || !content || !status) {
19+
if (!page_secret_key || !title || !tags || !content || !status) {
2020
res
2121
.status(400)
2222
.json({ error: { statusCode: 400, message: "Invalid request" } });
@@ -38,7 +38,7 @@ export default async function handler(
3838
page_id: pageDetails.id,
3939
title,
4040
content,
41-
type,
41+
tags,
4242
status,
4343
images_folder: v4(),
4444
});

0 commit comments

Comments
 (0)