🎨 🧹

This commit is contained in:
Timur Ercan
2023-03-02 18:42:38 +01:00
parent 07dca8a2db
commit b178a4ed58
4 changed files with 10 additions and 25 deletions

View File

@ -48,8 +48,7 @@ async function getHandler(req: NextApiRequest, res: NextApiResponse) {
`attachment; filename=${document.title}`
);
res.status(200).send(buffer);
return;
return res.status(200).send(buffer);
}
async function deleteHandler(req: NextApiRequest, res: NextApiResponse) {