From cd192020429bda774d1d8e05b8a087c5f4569ea0 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 9 Jul 2024 13:39:49 +0100 Subject: [PATCH] Fix external relationships. --- packages/server/src/api/controllers/row/utils/sqlUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/utils/sqlUtils.ts b/packages/server/src/api/controllers/row/utils/sqlUtils.ts index 76cf4d01ff..0d64113788 100644 --- a/packages/server/src/api/controllers/row/utils/sqlUtils.ts +++ b/packages/server/src/api/controllers/row/utils/sqlUtils.ts @@ -76,7 +76,7 @@ export async function updateRelationshipColumns( if (!linked._id) { continue } - if (opts?.sqs && isCorrectRelationship(relationship, row)) { + if (!opts?.sqs || isCorrectRelationship(relationship, row)) { columns[relationship.column] = linked } }