Skip to content

Commit

Permalink
fix(node): direction case sensitiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
jofaval authored Jan 31, 2025
1 parent 640fbb1 commit 46c8de4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/develop/paginated/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const deleteAuthor = async (id) => {

export const getAuthorsPageable = async (page, limit, sort) => {
const sortObj = {
[sort?.property || 'name']: sort?.direction === 'DESC' ? 'DESC' : 'ASC'
[sort?.property || 'name']: sort?.direction === 'desc' ? 'desc' : 'asc'
};
try {
const options = {
Expand Down Expand Up @@ -289,11 +289,13 @@ Y por último listamos los autores paginados:
"sort" : [
{
"property": "name",
"direction": "ASC"
"direction": "asc"
}
]
}
}
```
_**Importante:** `direction` tiene que ir en minúsculas_
![Postman](../../assets/images/step2-nodejs5.png)

0 comments on commit 46c8de4

Please sign in to comment.