From c7b6badbe8da5a5b4ba46a46e09db220ce9e60c5 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 16 Nov 2025 07:08:14 +0000 Subject: [PATCH] Fix type casting in community posts endpoint cgen-6a868233ebbc425e9e47b8ee67489552 --- api/community/posts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/community/posts.ts b/api/community/posts.ts index c46ff815..80595d6a 100644 --- a/api/community/posts.ts +++ b/api/community/posts.ts @@ -110,7 +110,7 @@ export default async function handler(req: any, res: any) { return res.status(500).json({ error: error.message }); } - const createdPost = data?.[0]; + const createdPost = (data?.[0] as any); // Sync post to Discord feed webhook try {