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

@@ -3,6 +3,7 @@ import { ConfigDBService } from "@/lib/services/config-db.service";
import { ERROR_CODES } from "@/constants/errorCodes";
import type { TTLConfig } from "@/types/komga";
import { getErrorMessage } from "@/utils/errors";
import type { NextRequest } from "next/server";
export async function GET() {
try {
@@ -37,7 +38,7 @@ export async function GET() {
}
}
export async function POST(request: Request) {
export async function POST(request: NextRequest) {
try {
const data = await request.json();
const config: TTLConfig = await ConfigDBService.saveTTLConfig(data);