mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
Missing bracket
This commit is contained in:
parent
eebff7a23b
commit
8f1ee03cf0
@ -70,7 +70,7 @@ async function getPaginated(service, endpoint, options = {}) {
|
||||
|
||||
const data = [...response.body, ...more];
|
||||
|
||||
if(!queryOptions.page && pagination) {
|
||||
if (!queryOptions.page && pagination) {
|
||||
return {
|
||||
data,
|
||||
pagination: {
|
||||
@ -79,7 +79,8 @@ async function getPaginated(service, endpoint, options = {}) {
|
||||
current: response.headers['x-page'],
|
||||
previous: response.headers['x-prev-page'],
|
||||
total: response.headers['x-total-pages'],
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user