Type fixes

This commit is contained in:
zomars
2022-05-17 15:32:54 -06:00
parent fbbda20792
commit 0153bc583a
43 changed files with 191 additions and 187 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
if (typeof handler !== "function")
throw new HttpError({ statusCode: 404, message: `API handler not found` });
const response = await handler(req, res);
await handler(req, res);
return res.status(200);
} catch (error) {