fix: add type import for NextApiRequest
parent
3c32bc8528
commit
f85b00507a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue