From ab89b3e4644689e57d2e93d3d2477b92a41dca8f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 May 2022 16:01:34 +0200 Subject: [PATCH] Mark `model` as unused in `canEdit` --- pages/api/events/[slug].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"}) }