small fix
This commit is contained in:
@@ -10,6 +10,6 @@ export default async function tags(req: NextApiRequest, res: NextApiResponse) {
|
||||
const tags = await getTags({
|
||||
userId: user.id,
|
||||
});
|
||||
return res.status(tags.status).json({ response: tags.response });
|
||||
return res.status(tags?.status || 500).json({ response: tags?.response });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user