Fix type casting in community posts endpoint

cgen-6a868233ebbc425e9e47b8ee67489552
This commit is contained in:
Builder.io 2025-11-16 07:08:14 +00:00
parent c30d97fdf5
commit c7b6badbe8

View file

@ -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 {