From 0720aa8b98abd9d5c26f58ac8ade57af875fa428 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 11 Oct 2023 13:55:35 +0200 Subject: [PATCH] Remove any --- packages/server/src/api/controllers/row/ExternalRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/ExternalRequest.ts b/packages/server/src/api/controllers/row/ExternalRequest.ts index fd9c5bbb52..71532c37d5 100644 --- a/packages/server/src/api/controllers/row/ExternalRequest.ts +++ b/packages/server/src/api/controllers/row/ExternalRequest.ts @@ -577,7 +577,7 @@ export class ExternalRequest { definition.toPrimary = linkTable.primary[0] } else { // if no foreign key specified then use the name of the field in other table - definition.from = (field as any).foreignKey || table.primary[0] + definition.from = field.foreignKey || table.primary[0] definition.to = field.fieldName } relationships.push(definition)