Skip to content

Commit cf8d4e7

Browse files
authored
Merge pull request #45 from techulus/develop
Update Zapier integration to use tags instead of type
2 parents 944ef04 + 175e02e commit cf8d4e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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)