From 9592f25b66255fcc0f3ea08e26c0027ffbe077ae Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Fri, 26 Jan 2024 11:01:16 +0100 Subject: [PATCH] Use api calls for getRow/s test helper --- packages/server/src/tests/utilities/TestConfiguration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/tests/utilities/TestConfiguration.ts b/packages/server/src/tests/utilities/TestConfiguration.ts index 52e75d4443..8029a04914 100644 --- a/packages/server/src/tests/utilities/TestConfiguration.ts +++ b/packages/server/src/tests/utilities/TestConfiguration.ts @@ -688,14 +688,14 @@ class TestConfiguration { } async getRow(tableId: string, rowId: string): Promise { - return this._req(null, { tableId, rowId }, controllers.row.find) + return this.api.row.get(tableId, rowId) } async getRows(tableId: string) { if (!tableId && this.table) { tableId = this.table._id! } - return this._req(null, { tableId }, controllers.row.fetch) + return this.api.row.fetch(tableId) } async searchRows(tableId: string, searchParams: SearchFilters = {}) {