refactor: remove unused file import
This commit is contained in:
parent
55f634f5fd
commit
add557c1c3
|
|
@ -2,7 +2,6 @@ import { NextResponse } from "next/server";
|
||||||
import { getServerSession } from "next-auth";
|
import { getServerSession } from "next-auth";
|
||||||
import prisma from "@/lib/prisma";
|
import prisma from "@/lib/prisma";
|
||||||
import { authOptions } from "../auth/[...nextauth]/route";
|
import { authOptions } from "../auth/[...nextauth]/route";
|
||||||
import { AnalysisWithMetric } from "@/src/hooks/useAnalyzeText";
|
|
||||||
|
|
||||||
export async function GET() {
|
export async function GET() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
|
|
@ -25,7 +24,7 @@ export async function GET() {
|
||||||
orderBy: {
|
orderBy: {
|
||||||
createdAt: "desc",
|
createdAt: "desc",
|
||||||
},
|
},
|
||||||
})) as AnalysisWithMetric | null;
|
})) as { metric: { metricId: number } } | null;
|
||||||
|
|
||||||
return NextResponse.json({ metricId: userAnalysis?.metric?.metricId });
|
return NextResponse.json({ metricId: userAnalysis?.metric?.metricId });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue