Add missing version to paginated search endpoint

This commit is contained in:
Andrew Kingston 2021-07-23 15:55:58 +01:00
parent fa3cf585d7
commit 72061f341e
1 changed files with 1 additions and 0 deletions

View File

@ -335,6 +335,7 @@ exports.paginatedSearch = async (appId, query, params) => {
} }
limit = Math.min(limit, 200) limit = Math.min(limit, 200)
const search = new QueryBuilder(appId, query) const search = new QueryBuilder(appId, query)
.setVersion(params.version)
.setTable(params.tableId) .setTable(params.tableId)
.setSort(params.sort) .setSort(params.sort)
.setSortOrder(params.sortOrder) .setSortOrder(params.sortOrder)