diff --git a/pages/api/events/[slug].ts b/pages/api/events/[slug].ts index 6c10471..7f0caf7 100644 --- a/pages/api/events/[slug].ts +++ b/pages/api/events/[slug].ts @@ -12,7 +12,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse< handleInterrupts(res, async () => { const user = await authorizeUser(req, res) - const canEdit = async (model: Model, obj?: Event) => { + const canEdit = async (_model: Model, obj?: Event) => { if(obj && obj.creatorId !== user.id) { throw new Interrupt(403, {error: "Only the creator can edit an event"}) }