fix: use fullTextSearch in body for series search API

This commit is contained in:
2026-02-27 09:14:53 +01:00
parent b9c8b05bc8
commit 38c7e59366

View File

@@ -112,7 +112,7 @@ export class LibraryService extends BaseApiService {
}; };
} }
const searchBody = { condition }; const searchBody: { condition: any; fullTextSearch?: string } = { condition };
const params: Record<string, string | string[]> = { const params: Record<string, string | string[]> = {
page: String(page), page: String(page),
@@ -120,9 +120,8 @@ export class LibraryService extends BaseApiService {
sort: "metadata.titleSort,asc", sort: "metadata.titleSort,asc",
}; };
// Filtre de recherche Komga (recherche dans le titre)
if (search) { if (search) {
params.search = search; searchBody.fullTextSearch = search;
} }
const response = await this.fetchFromApi<LibraryResponse<Series>>( const response = await this.fetchFromApi<LibraryResponse<Series>>(