From 175e02edfe8e1013e9e84e1e921b0ec4fa61c462 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Tue, 31 Dec 2024 11:58:49 +1100 Subject: [PATCH] Update Zapier integration to use tags instead of type --- apps/web/pages/api/integrations/zapier/action-new-post.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(), });