Skip to content

Commit 28dd5a1

Browse files
Merge pull request #1330 from hinashi/feature/new_ui/job_api_limit
Changed to allow specifying limit of job api
2 parents e9362ae + 3f90a72 commit 28dd5a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend/src/repository/AironeApiClient.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -913,11 +913,12 @@ class AironeApiClient {
913913

914914
async getJobs(
915915
page: number = 1,
916-
targetId?: number
916+
targetId?: number,
917+
limit?: number
917918
): Promise<PaginatedJobSerializersList> {
918919
return await this.job.jobApiV2JobsList({
919920
offset: (page - 1) * JobList.MAX_ROW_COUNT,
920-
limit: JobList.MAX_ROW_COUNT,
921+
limit: limit ?? JobList.MAX_ROW_COUNT,
921922
targetId,
922923
});
923924
}

0 commit comments

Comments
 (0)