From b3e7080215a17ba3dd199ed8872c4cc0faab0a74 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 25 Apr 2024 16:31:15 +0200 Subject: [PATCH] Fix import single user --- packages/server/src/utilities/schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/server/src/utilities/schema.ts b/packages/server/src/utilities/schema.ts index ae77abd2e4..150d6cf74a 100644 --- a/packages/server/src/utilities/schema.ts +++ b/packages/server/src/utilities/schema.ts @@ -148,6 +148,10 @@ export function parse(rows: Rows, schema: TableSchema): Rows { utils.unreachable(columnSubtype) } } + } else if (columnType === FieldType.BB_REFERENCE_SINGLE) { + const parsedValue = + columnData && parseCsvExport<{ _id: string }>(columnData) + parsedRow[columnName] = parsedValue?._id } else if ( (columnType === FieldType.ATTACHMENTS || columnType === FieldType.ATTACHMENT_SINGLE) &&