remove default value since provide on getDocs

This commit is contained in:
fadingNA
2024-11-07 23:21:26 -05:00
parent 2a68cc9989
commit 7ff86a2aee

View File

@@ -3,10 +3,10 @@ import endpoints from '../endpoints';
const userService = {
getDocs: (
sort = 'date',
order = 'desc',
pageNumber = 1,
rowsPerPage = 10,
sort: string,
order: string,
pageNumber: number,
rowsPerPage: number,
): Promise<any> =>
apiClient.get(
`${endpoints.USER.DOCS}?sort=${sort}&order=${order}&page=${pageNumber}&rows=${rowsPerPage}`,