From 7db92638de78b9311e2a3597918e1609ade060d4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 28 Sep 2023 11:40:58 +0200 Subject: [PATCH] Prevent double fetching on patch --- packages/server/src/api/controllers/row/external.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/server/src/api/controllers/row/external.ts b/packages/server/src/api/controllers/row/external.ts index 913a44a362..7d78f5da37 100644 --- a/packages/server/src/api/controllers/row/external.ts +++ b/packages/server/src/api/controllers/row/external.ts @@ -72,12 +72,10 @@ export async function patch(ctx: UserCtx) { id: breakRowIdField(_id), row: dataToUpdate, }) - const row = await sdk.rows.external.getRow(tableId, _id, { - relationships: true, - }) + const row = await outputProcessing(table, response.row) return { ...response, - row: await outputProcessing(table, row), + row, table, } }