From b700f16a3a6f1ed00b412ea2ff88a96598332f24 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 28 Nov 2024 10:12:16 +0000 Subject: [PATCH] Fix search.spec.ts. --- packages/server/src/api/routes/tests/search.spec.ts | 2 +- packages/server/src/sdk/app/tables/external/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/routes/tests/search.spec.ts b/packages/server/src/api/routes/tests/search.spec.ts index 6a56ec37c6..5384444067 100644 --- a/packages/server/src/api/routes/tests/search.spec.ts +++ b/packages/server/src/api/routes/tests/search.spec.ts @@ -3329,7 +3329,7 @@ if (descriptions.length) { }) isSql && - describe.only("primaryDisplay", () => { + describe("primaryDisplay", () => { beforeAll(async () => { let toRelateTableId = await createTable({ name: { diff --git a/packages/server/src/sdk/app/tables/external/index.ts b/packages/server/src/sdk/app/tables/external/index.ts index a8fad40a8b..df3f287842 100644 --- a/packages/server/src/sdk/app/tables/external/index.ts +++ b/packages/server/src/sdk/app/tables/external/index.ts @@ -253,7 +253,7 @@ export async function save( const oldExtraTable = oldTables[extraTable.name] let op = oldExtraTable ? Operation.UPDATE_TABLE : Operation.CREATE_TABLE try { - await makeTableRequest(datasource, op, extraTable) + await makeTableRequest(datasource, op, extraTable, oldExtraTable) } catch (err: any) { throw err }