mirror of
https://github.com/gotson/komga.git
synced 2025-12-20 23:45:11 +01: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>> {
|
||||
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) {
|
||||
let msg = 'An error occurred while trying to retrieve series'
|
||||
if (e.response.data.message) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue