mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 15:34:17 +01:00
fix missing page request parameter when requesting books
This commit is contained in:
parent
cc6d581b4e
commit
3959d15c04
1 changed files with 4 additions and 1 deletions
|
|
@ -44,7 +44,10 @@ export default class KomgaSeriesService {
|
|||
|
||||
async getBooks (seriesId: number, pageRequest?: PageRequest): Promise<Page<BookDto>> {
|
||||
try {
|
||||
const data = (await this.http.get(`${API_SERIES}/${seriesId}/books`)).data
|
||||
const data = (await this.http.get(`${API_SERIES}/${seriesId}/books`, {
|
||||
params: { ...pageRequest },
|
||||
paramsSerializer: params => qs.stringify(params, { indices: false })
|
||||
})).data
|
||||
data.content.forEach(function (b: any) {
|
||||
b.seriesId = seriesId
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue