Skip to content

Commit 067e3f3

Browse files
committed
Fixed typecheck
1 parent e74a9fb commit 067e3f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pages/api/workspace/[id]/settings/general/birthdays

pages/api/workspace/[id]/settings/general/birthdays/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NextApiRequest, NextApiResponse } from "next";
2-
import { withAuth } from "@/lib/withAuth";
2+
import { AuthenticatedRequest, withAuth } from "@/lib/withAuth";
33
import prisma from "@/utils/database";
44

5-
async function handler(req: NextApiRequest, res: NextApiResponse) {
5+
async function handler(req: AuthenticatedRequest, res: NextApiResponse) {
66
if (req.method !== "POST") {
77
return res
88
.status(405)

0 commit comments

Comments
 (0)