refactor: remove unused file import

This commit is contained in:
Mahen 2026-04-04 10:00:44 +07:00
parent 55f634f5fd
commit add557c1c3
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ import { NextResponse } from "next/server";
import { getServerSession } from "next-auth";
import prisma from "@/lib/prisma";
import { authOptions } from "../auth/[...nextauth]/route";
import { AnalysisWithMetric } from "@/src/hooks/useAnalyzeText";
export async function GET() {
const session = await getServerSession(authOptions);
@ -25,7 +24,7 @@ export async function GET() {
orderBy: {
createdAt: "desc",
},
})) as AnalysisWithMetric | null;
})) as { metric: { metricId: number } } | null;
return NextResponse.json({ metricId: userAnalysis?.metric?.metricId });
}