Skip to content

Commit bfe0ace

Browse files
authored
Merge pull request #39 from SecJS/fix/len-adjust-pagination-order
fix: adjust pagination order
2 parents 4cc259a + 267fca0 commit bfe0ace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@secjs/utils",
3-
"version": "1.5.8",
3+
"version": "1.5.9",
44
"description": "",
55
"license": "MIT",
66
"author": "João Lenon",

src/Functions/paginate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ export function paginate(
3030
last: `${pagination.resourceUrl}?page=${totalPages}&limit=${meta.itemsPerPage}`,
3131
}
3232

33-
return { data, meta, links }
33+
return { meta, links, data }
3434
}

0 commit comments

Comments
 (0)