Skip to content

Commit

Permalink
Cursor Paginationn bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushgarg-dev committed Oct 18, 2023
1 parent d788ff7 commit fe0fbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class FormService {
}
: undefined,
take: options?.itemsPerPage ?? 10,
skip: 1, // Skip the cursor
skip: options?.cursor ? 1 : 0, // Skip the cursor
orderBy: { createdAt: 'desc' },
})
}
Expand Down

0 comments on commit fe0fbb7

Please sign in to comment.