small fix
This commit is contained in:
parent
46f81ebf25
commit
a4c83dc82f
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
Ŝarĝante…
Reference in New Issue