From 1bd79d68d24fe171e24a40e24ac64582fe4493f7 Mon Sep 17 00:00:00 2001 From: Alex Patterson Date: Sat, 10 Oct 2026 12:12:28 -0400 Subject: [PATCH] fix(syndication): update Hashnode tag shape to PublishPostTagInput --- apps/sanity/functions/syndicate-content/index.ts | 9 ++++----- scripts/run-syndicate-post.mjs | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/apps/sanity/functions/syndicate-content/index.ts b/apps/sanity/functions/syndicate-content/index.ts index 6d80f440..a7d13884 100644 --- a/apps/sanity/functions/syndicate-content/index.ts +++ b/apps/sanity/functions/syndicate-content/index.ts @@ -309,15 +309,14 @@ export const handler = documentEventHandler( ? data.excerpt.substring(0, 247) + "..." : data.excerpt || ""; - const hashnodeTags: Array<{ id: string; name: string; slug: string }> = [ - { id: "56744721958ef13879b94cad", name: "JavaScript", slug: "javascript" }, - { id: "56744722958ef13879b94f1b", name: "Web Development", slug: "web-development" }, - { id: "56744723958ef13879b955a9", name: "Beginner Developers", slug: "beginners" }, + const hashnodeTags: Array<{ name: string; slug: string }> = [ + { name: "JavaScript", slug: "javascript" }, + { name: "Web Development", slug: "web-development" }, + { name: "Beginner Developers", slug: "beginners" }, ]; if (data._type === "podcast") { hashnodeTags.push({ - id: "56744722958ef13879b950d3", name: "podcast", slug: "podcast", }); diff --git a/scripts/run-syndicate-post.mjs b/scripts/run-syndicate-post.mjs index 716d8ba6..f08f8ce9 100644 --- a/scripts/run-syndicate-post.mjs +++ b/scripts/run-syndicate-post.mjs @@ -176,9 +176,9 @@ async function run() { : (doc.excerpt || ""); const hashnodeTags = [ - { id: "56744721958ef13879b94cad", name: "JavaScript", slug: "javascript" }, - { id: "56744722958ef13879b94f1b", name: "Web Development", slug: "web-development" }, - { id: "56744723958ef13879b955a9", name: "Beginner Developers", slug: "beginners" }, + { name: "JavaScript", slug: "javascript" }, + { name: "Web Development", slug: "web-development" }, + { name: "Beginner Developers", slug: "beginners" }, ]; const hashnodeCoverImageUrl = urlForImage(doc.coverImage)?.width(1600).height(840).url() || "";