chore: update various components and services for improved functionality and consistency, including formatting adjustments and minor refactors
This commit is contained in:
@@ -44,10 +44,10 @@ export async function GET(
|
||||
return { buffer, contentType };
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// Cloner le buffer pour cette requête pour éviter tout partage de référence
|
||||
const clonedBuffer = buffer.slice(0);
|
||||
|
||||
|
||||
const headers = new Headers();
|
||||
headers.set("Content-Type", contentType);
|
||||
headers.set("Cache-Control", "public, max-age=31536000"); // Cache for 1 year
|
||||
|
||||
@@ -16,7 +16,7 @@ export async function GET(
|
||||
|
||||
const data: KomgaBookWithPages = await BookService.getBook(bookId);
|
||||
const nextBook = await BookService.getNextBook(bookId, data.book.seriesId);
|
||||
|
||||
|
||||
return NextResponse.json({ ...data, nextBook });
|
||||
} catch (error) {
|
||||
logger.error({ err: error }, "API Books - Erreur:");
|
||||
|
||||
Reference in New Issue
Block a user