Fix type casting in community posts endpoint
cgen-6a868233ebbc425e9e47b8ee67489552
This commit is contained in:
parent
c30d97fdf5
commit
c7b6badbe8
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ export default async function handler(req: any, res: any) {
|
||||||
return res.status(500).json({ error: error.message });
|
return res.status(500).json({ error: error.message });
|
||||||
}
|
}
|
||||||
|
|
||||||
const createdPost = data?.[0];
|
const createdPost = (data?.[0] as any);
|
||||||
|
|
||||||
// Sync post to Discord feed webhook
|
// Sync post to Discord feed webhook
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue