Skip to content
Snippets Groups Projects
Verified Commit b987cca7 authored by Birk Gustav Samson Stoveland's avatar Birk Gustav Samson Stoveland :speech_balloon:
Browse files

hotfix: prettify

parent 78ef71fc
Branches
No related tags found
No related merge requests found
......@@ -57,7 +57,8 @@ export const getAllCommitsFromAPI = async () => {
};
const getMergeRequestsFromAPI = async (data: Array<MergeRequest>, page: number) => {
return fromAPI('/merge_requests?state=all&per_page=101000&&page=' + page, 'GET').then(async (res) => {
return fromAPI('/merge_requests?state=all&per_page=101000&&page=' + page, 'GET').then(
async (res) => {
if (res.ok) {
data = data.concat(res.data as Array<MergeRequest>);
if (res.headers.get('x-next-page')) {
......@@ -66,7 +67,8 @@ const getMergeRequestsFromAPI = async (data: Array<MergeRequest>, page: number)
return data;
}
}
});
},
);
};
export const getAllMergeRequestsFromAPI = async () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment