Type fixes

This commit is contained in:
zomars authored and Omar López committed 2022-02-10 14:22:45 -07:00
1 parent 3d4de9476d
commit cee41eabc7
12 files changed
+49 -45

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import prisma from "@lib/prisma";
import { getTranslation } from "@server/lib/i18n";
export default async function handler(req: NextApiRequest, res: NextApiResponse): Promise<void> {
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const apiKey = req.headers.authorization || req.query.apiKey;
if (process.env.CRON_API_KEY !== apiKey) {
res.status(401).json({ message: "Not authenticated" });