From fcfac2c56f21b325ab6eb3db15885799a0b2b9c4 Mon Sep 17 00:00:00 2001 From: Alma Date: Sat, 12 Apr 2025 14:16:17 +0200 Subject: [PATCH] working leantime widget 30 --- app/api/leantime/tasks/route.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index debba36a..2940cf74 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -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 { } } -export async function GET() { +export async function GET(request: NextRequest) { try { const session = await getServerSession(authOptions);