When requesting all request elements we now also return the page as int not string

This commit is contained in:
2019-07-25 00:47:17 +02:00
parent e19cfb5870
commit 6aba9774c6

View File

@@ -124,6 +124,7 @@ class RequestRepository {
*/
fetchAll(page=1, sort_by=undefined, sort_direction='asc', filter=undefined, query=undefined) {
// TODO implemented sort and filter
page = parseInt(page)
let fetchQuery = this.queries.fetchAll
let fetchTotalResults = this.queries.totalRequests
let fetchParams = [page]