fix: align book sorting with Komga numberSort
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m19s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 4m19s
This commit is contained in:
@@ -201,7 +201,7 @@ export class BookService extends BaseApiService {
|
|||||||
}>(
|
}>(
|
||||||
{
|
{
|
||||||
path: "books/list",
|
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" },
|
{ "Content-Type": "application/json" },
|
||||||
{ method: "POST", body: JSON.stringify(searchBody) }
|
{ method: "POST", body: JSON.stringify(searchBody) }
|
||||||
@@ -213,7 +213,10 @@ export class BookService extends BaseApiService {
|
|||||||
content: KomgaBook[];
|
content: KomgaBook[];
|
||||||
totalElements: number;
|
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" },
|
{ "Content-Type": "application/json" },
|
||||||
{ method: "POST", body: JSON.stringify(searchBody) }
|
{ method: "POST", body: JSON.stringify(searchBody) }
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ export class SeriesService extends BaseApiService {
|
|||||||
const params: Record<string, string | string[]> = {
|
const params: Record<string, string | string[]> = {
|
||||||
page: String(page),
|
page: String(page),
|
||||||
size: String(size),
|
size: String(size),
|
||||||
sort: "number,asc",
|
sort: "metadata.numberSort,asc",
|
||||||
};
|
};
|
||||||
|
|
||||||
const response = await this.fetchFromApi<LibraryResponse<KomgaBook>>(
|
const response = await this.fetchFromApi<LibraryResponse<KomgaBook>>(
|
||||||
|
|||||||
Reference in New Issue
Block a user