From 72061f341e30342ee4d894caaf930c69c2961609 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Jul 2021 15:55:58 +0100 Subject: [PATCH] Add missing version to paginated search endpoint --- packages/server/src/api/controllers/row/internalSearch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/server/src/api/controllers/row/internalSearch.js b/packages/server/src/api/controllers/row/internalSearch.js index a1aa77b34a..e525a95675 100644 --- a/packages/server/src/api/controllers/row/internalSearch.js +++ b/packages/server/src/api/controllers/row/internalSearch.js @@ -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)