working leantime widget 30

This commit is contained in:
Alma 2025-04-12 14:16:17 +02:00
parent f58b02628d
commit fcfac2c56f

View File

@ -1,3 +1,4 @@
import { NextRequest } from "next/server";
import { getServerSession } from "next-auth/next";
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
import { NextResponse } from "next/server";
@ -58,7 +59,7 @@ async function getLeantimeUserId(email: string): Promise<number | null> {
}
}
export async function GET() {
export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);