fix: add type import for NextApiRequest

pull/9078/head
Agusti Fernandez Pardo 2022-06-24 00:46:42 +02:00
parent 3c32bc8528
commit f85b00507a
1 changed files with 1 additions and 0 deletions

View File

@ -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;