Add missing version to paginated search endpoint

This commit is contained in:
Andrew Kingston 2021-07-23 15:55:58 +01:00
parent 9f06b180a8
commit 0845bde7b4
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)
const search = new QueryBuilder(appId, query)
.setVersion(params.version)
.setTable(params.tableId)
.setSort(params.sort)
.setSortOrder(params.sortOrder)