diff --git a/apps/web/pages/api/integrations/zapier/action-new-post.tsx b/apps/web/pages/api/integrations/zapier/action-new-post.tsx index 9bfe42c..158ae66 100644 --- a/apps/web/pages/api/integrations/zapier/action-new-post.tsx +++ b/apps/web/pages/api/integrations/zapier/action-new-post.tsx @@ -13,10 +13,10 @@ export default async function handler( ) { let { query: { page_secret_key }, - body: { title, type, content, status }, + body: { title, tags, content, status }, } = req; - if (!page_secret_key || !title || !type || !content || !status) { + if (!page_secret_key || !title || !tags || !content || !status) { res .status(400) .json({ error: { statusCode: 400, message: "Invalid request" } }); @@ -38,7 +38,7 @@ export default async function handler( page_id: pageDetails.id, title, content, - type, + tags, status, images_folder: v4(), });