From 0158c6e696d15c7e59003a8b612a7a83848576bb Mon Sep 17 00:00:00 2001 From: alma Date: Thu, 17 Apr 2025 00:55:29 +0200 Subject: [PATCH] Neah version calendar fix 3 debuger sec chance danger debug 10 --- app/api/calendars/[id]/events/route.ts | 2 +- app/api/calendars/[id]/route.ts | 2 +- app/api/calendars/route.ts | 2 +- app/api/leantime/tasks/route.ts | 2 +- app/api/mail/route.ts | 2 +- app/api/rocket-chat/messages/route.ts | 2 +- app/calendar/page.tsx | 2 +- app/signin/page.tsx | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/api/calendars/[id]/events/route.ts b/app/api/calendars/[id]/events/route.ts index dc0e277..268ce1b 100644 --- a/app/api/calendars/[id]/events/route.ts +++ b/app/api/calendars/[id]/events/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { prisma } from "@/lib/prisma"; /** diff --git a/app/api/calendars/[id]/route.ts b/app/api/calendars/[id]/route.ts index 4f8f59d..25ea758 100644 --- a/app/api/calendars/[id]/route.ts +++ b/app/api/calendars/[id]/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { prisma } from "@/lib/prisma"; /** diff --git a/app/api/calendars/route.ts b/app/api/calendars/route.ts index fcbebfe..01e1f64 100644 --- a/app/api/calendars/route.ts +++ b/app/api/calendars/route.ts @@ -1,5 +1,5 @@ import { NextRequest, NextResponse } from "next/server"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { getServerSession } from "next-auth/next"; import { prisma } from "@/lib/prisma"; diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index 2da74af..49667b5 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -1,6 +1,6 @@ import { NextRequest, NextResponse } from "next/server"; import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { prisma } from "@/lib/prisma"; // Cache for Leantime user IDs diff --git a/app/api/mail/route.ts b/app/api/mail/route.ts index 44f28f7..c86f918 100644 --- a/app/api/mail/route.ts +++ b/app/api/mail/route.ts @@ -3,7 +3,7 @@ import Imap from 'imap'; import nodemailer from 'nodemailer'; import { parseEmailHeaders, decodeEmailBody } from '@/lib/email-parser'; import { getServerSession } from 'next-auth/next'; -import { authOptions } from '@/lib/auth'; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { prisma } from '@/lib/prisma'; interface Email { diff --git a/app/api/rocket-chat/messages/route.ts b/app/api/rocket-chat/messages/route.ts index 94a3c85..f809835 100644 --- a/app/api/rocket-chat/messages/route.ts +++ b/app/api/rocket-chat/messages/route.ts @@ -1,5 +1,5 @@ import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { NextResponse } from "next/server"; // Helper function to get user token using admin credentials diff --git a/app/calendar/page.tsx b/app/calendar/page.tsx index 9fdd6b8..04c2fc5 100644 --- a/app/calendar/page.tsx +++ b/app/calendar/page.tsx @@ -1,5 +1,5 @@ import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { redirect } from "next/navigation"; import { prisma } from "@/lib/prisma"; import { CalendarClient } from "@/components/calendar/calendar-client"; diff --git a/app/signin/page.tsx b/app/signin/page.tsx index 482c779..7fb4474 100644 --- a/app/signin/page.tsx +++ b/app/signin/page.tsx @@ -1,6 +1,6 @@ import { Metadata } from "next"; import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/lib/auth"; +import { authOptions } from "@/app/api/auth/[...nextauth]/route"; import { redirect } from "next/navigation"; import { SignInForm } from "@/components/auth/signin-form";