Skip to content

Commit 6fe8a0c

Browse files
Use pagination
1 parent 74dbfdb commit 6fe8a0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github/FetchHandler.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ const FetchHandler: FC = () => {
105105
if (allReleasesRefetchOk && enableFetchOpenDTUReleases) {
106106
dispatch(setReleasesTimeout());
107107

108-
const releases = await githubApi.request(
108+
const releases = await githubApi.paginate(
109109
'GET /repos/{owner}/{repo}/releases',
110110
OpenDTUGithubBaseConfig,
111111
);
112112

113-
dispatch(setReleases({ releases: releases.data as Release[] }));
113+
dispatch(setReleases({ releases: releases as Release[] }));
114114
} else {
115115
log.info('SKIP allReleasesRefetchOk');
116116
}

0 commit comments

Comments
 (0)