mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 21:00:16 +02:00
parent
2063bede25
commit
8629ea9936
1 changed files with 4 additions and 1 deletions
|
|
@ -80,7 +80,10 @@ export default class KomgaCollectionsService {
|
||||||
|
|
||||||
async getSeries (collectionId: number, pageRequest?: PageRequest): Promise<Page<SeriesDto>> {
|
async getSeries (collectionId: number, pageRequest?: PageRequest): Promise<Page<SeriesDto>> {
|
||||||
try {
|
try {
|
||||||
return (await this.http.get(`${API_COLLECTIONS}/${collectionId}/series`)).data
|
const params = { ...pageRequest }
|
||||||
|
return (await this.http.get(`${API_COLLECTIONS}/${collectionId}/series`, {
|
||||||
|
params: params,
|
||||||
|
})).data
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
let msg = 'An error occurred while trying to retrieve series'
|
let msg = 'An error occurred while trying to retrieve series'
|
||||||
if (e.response.data.message) {
|
if (e.response.data.message) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue