From a01637831ad64c8d6f64d625536c90d9c782f71f Mon Sep 17 00:00:00 2001 From: Leonardo Pinho Date: Wed, 4 Dec 2024 02:03:34 -0300 Subject: [PATCH] chore: trigger ci --- content/hello-world.mdx | 2 +- content/prop-drilling.mdx | 2 +- github-actions-scripts/publish-post-update.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/content/hello-world.mdx b/content/hello-world.mdx index 001e2c1..a4af7e6 100644 --- a/content/hello-world.mdx +++ b/content/hello-world.mdx @@ -9,7 +9,7 @@ published: true Hello I am a callout # Hello World - + Welcome to my blog `inline code` ### Header 3 diff --git a/content/prop-drilling.mdx b/content/prop-drilling.mdx index 11afd07..d01a7ca 100644 --- a/content/prop-drilling.mdx +++ b/content/prop-drilling.mdx @@ -11,7 +11,7 @@ published: true In the shadowy depths of a complex React application, a horror story unfolds. Components, innocent and unsuspecting, find themselves ensnared in a terrifying ordeal known as prop drilling. This tale of suspense and survival will take you through the darkest corridors of React development. ## The Curse of Prop Drilling - + Our story begins in a seemingly ordinary app, where a deep nesting of components lives in harmony. But beneath the surface, a curse lurks: the curse of prop drilling. Props, those precious pieces of data, must traverse through an endless labyrinth of components, each more terrifying than the last. ```jsx diff --git a/github-actions-scripts/publish-post-update.js b/github-actions-scripts/publish-post-update.js index e4db954..ca3f6c8 100644 --- a/github-actions-scripts/publish-post-update.js +++ b/github-actions-scripts/publish-post-update.js @@ -63,7 +63,7 @@ async function publishEvent(slug, frontmatter, eventType) { // const dataBuffer = Buffer.from(JSON.stringify({ message})); try { - pubSubClient.topic(topicName).publishMessage({data: Buffer.from(JSON.stringify(message.data)) , attributes: message.attributes}) + await pubSubClient.topic(topicName).publishMessage({data: Buffer.from(JSON.stringify(message.data)) , attributes: message.attributes}) console.log(`Message published for slug: ${slug}`); } catch (error) { console.log(`Failed to publish message for slug: ${slug}`, error); @@ -83,6 +83,7 @@ async function publishEvent(slug, frontmatter, eventType) { console.log(`Detected change in ${file}: Event Type - ${eventType}`); await publishEvent(slug, frontmatter, eventType); + console.log("published event for slug", slug) } console.log("Published.") })();