From add557c1c34502a63426946aa47ab855273696f8 Mon Sep 17 00:00:00 2001 From: Mahen Date: Sat, 4 Apr 2026 10:00:44 +0700 Subject: [PATCH] refactor: remove unused file import --- src/app/api/user-metric/route.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/api/user-metric/route.ts b/src/app/api/user-metric/route.ts index addcab8..02d2ffe 100644 --- a/src/app/api/user-metric/route.ts +++ b/src/app/api/user-metric/route.ts @@ -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 }); }