small fix

This commit is contained in:
daniel31x13 2024-11-12 08:36:40 -05:00
parent 46f81ebf25
commit a4c83dc82f

View File

@ -10,6 +10,6 @@ export default async function tags(req: NextApiRequest, res: NextApiResponse) {
const tags = await getTags({ const tags = await getTags({
userId: user.id, userId: user.id,
}); });
return res.status(tags.status).json({ response: tags.response }); return res.status(tags?.status || 500).json({ response: tags?.response });
} }
} }