Skip to content

Commit 5cd9f93

Browse files
committed
refactor(cli): removing implemented feature
1 parent d0cc1c2 commit 5cd9f93

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

templates/cli/lib/paginate.js.twig

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,10 @@ const paginate = async (action, args = {}, limit = 100, wrapper = '') => {
55

66
while (true) {
77
const offset = pageNumber * limit;
8-
const additionalQueries = [];
9-
if (args.queries) {
10-
additionalQueries.push(...args.queries);
11-
}
128
// Merge the limit and offset into the args
139
const response = await action({
1410
...args,
1511
queries: [
16-
...additionalQueries,
1712
JSON.stringify({ method: 'limit', values: [limit] }),
1813
JSON.stringify({ method: 'offset', values: [offset] })
1914
]

0 commit comments

Comments
 (0)