fix: types of nj15

This commit is contained in:
Julien Froidefond
2025-03-02 14:40:15 +01:00
parent a4b521fe2e
commit e60b48d549
27 changed files with 133 additions and 100 deletions

View File

@@ -1,4 +1,4 @@
import type { NextRequest} from "next/server";
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import { SeriesService } from "@/lib/services/series.service";
import { ERROR_CODES } from "@/constants/errorCodes";
@@ -7,9 +7,12 @@ import { getErrorMessage } from "@/utils/errors";
export const dynamic = "force-dynamic";
export async function GET(request: NextRequest, { params }: { params: { seriesId: string } }) {
export async function GET(request: NextRequest) {
try {
const response = await SeriesService.getCover(params.seriesId);
const params = request.nextUrl.searchParams;
const seriesId: string = params.get("seriesId") || "";
const response = await SeriesService.getCover(seriesId);
return response;
} catch (error) {
console.error("Erreur lors de la récupération de la couverture de la série:", error);