fix: align book sorting with Komga numberSort
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m19s

This commit is contained in:
2026-03-05 08:45:02 +01:00
parent 3d7ac0c13e
commit a1a95775db
2 changed files with 6 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ export class BookService extends BaseApiService {
}>(
{
path: "books/list",
params: { page: String(randomPage), size: "20", sort: "number,asc" },
params: { page: String(randomPage), size: "20", sort: "metadata.numberSort,asc" },
},
{ "Content-Type": "application/json" },
{ method: "POST", body: JSON.stringify(searchBody) }
@@ -213,7 +213,10 @@ export class BookService extends BaseApiService {
content: KomgaBook[];
totalElements: number;
}>(
{ path: "books/list", params: { page: "0", size: "20", sort: "number,asc" } },
{
path: "books/list",
params: { page: "0", size: "20", sort: "metadata.numberSort,asc" },
},
{ "Content-Type": "application/json" },
{ method: "POST", body: JSON.stringify(searchBody) }
);

View File

@@ -80,7 +80,7 @@ export class SeriesService extends BaseApiService {
const params: Record<string, string | string[]> = {
page: String(page),
size: String(size),
sort: "number,asc",
sort: "metadata.numberSort,asc",
};
const response = await this.fetchFromApi<LibraryResponse<KomgaBook>>(