Scheduling infrastructure for absolutely everyone.
fixed codacy issues
Malte Delfs0c975cdcbcfc
diff --git a/pages/api/book/[user].ts b/pages/api/book/[user].tsindex c224466e571..2a5c2273de8 100644--- a/pages/api/book/[user].ts+++ b/pages/api/book/[user].ts@@ -248,7 +248,7 @@ export async function handleLegacyConfirmationMail(results: unknown[],selectedEventType: { requiresConfirmation: boolean },evt: CalendarEvent,- hashUID+ hashUID: string): Promise<{ error: Exception; message: string | null }> {if (results.length === 0 && !selectedEventType.requiresConfirmation) {// Legacy as well, as soon as we have a separate email integration class. Just useddiff --git a/pages/api/book/confirm.ts b/pages/api/book/confirm.tsindex de1df144b40..e685db10c07 100644--- a/pages/api/book/confirm.ts+++ b/pages/api/book/confirm.ts@@ -5,7 +5,7 @@ import { handleLegacyConfirmationMail, scheduleEvent } from "./[user]";import { CalendarEvent } from "@lib/calendarClient";import EventRejectionMail from "@lib/emails/EventRejectionMail";-export default async function handler(req: NextApiRequest, res: NextApiResponse) {+export default async function handler(req: NextApiRequest, res: NextApiResponse): Promise<void> {const session = await getSession({ req: req });if (!session) {return res.status(401).json({ message: "Not authenticated" });diff --git a/pages/api/cron/bookingReminder.ts b/pages/api/cron/bookingReminder.tsindex 1bf9da47e0b..a31bde97987 100644--- a/pages/api/cron/bookingReminder.ts+++ b/pages/api/cron/bookingReminder.ts@@ -5,7 +5,7 @@ import { ReminderType } from "@prisma/client";import EventOrganizerRequestReminderMail from "@lib/emails/EventOrganizerRequestReminderMail";import { CalendarEvent } from "@lib/calendarClient";-export default async function handler(req: NextApiRequest, res: NextApiResponse) {+export default async function handler(req: NextApiRequest, res: NextApiResponse): Promise<void> {const apiKey = req.query.apiKey;if (process.env.CRON_API_KEY != apiKey) {return res.status(401).json({ message: "Not authenticated" });