From f85b00507a18319c27063a6003c5e41bc026e849 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Fri, 24 Jun 2022 00:46:42 +0200 Subject: [PATCH] fix: add type import for NextApiRequest --- lib/utils/isAdmin.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/isAdmin.ts b/lib/utils/isAdmin.ts index b068ebe12f..c07086fbd6 100644 --- a/lib/utils/isAdmin.ts +++ b/lib/utils/isAdmin.ts @@ -1,4 +1,5 @@ import { UserPermissionRole } from "@prisma/client"; +import type { NextApiRequest } from "next/types"; export const isAdminGuard = async (req: NextApiRequest) => { const { userId, prisma } = req;