From 83c5801bd86ee5f9623b8a369e97a1dc5ee13103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=BChnlein?= Date: Thu, 25 Jan 2024 08:48:32 +0100 Subject: [PATCH] chore: remove unnecessary map --- app/temporal/src/workflows/importer.workflow.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/temporal/src/workflows/importer.workflow.ts b/app/temporal/src/workflows/importer.workflow.ts index 2acf954..f6201a4 100644 --- a/app/temporal/src/workflows/importer.workflow.ts +++ b/app/temporal/src/workflows/importer.workflow.ts @@ -198,10 +198,7 @@ export async function importer(params: ImporterWorkflowParams) { const chunkedFileReferences = await acts.applyMappings({ bucket: sourceFile!.bucket, fileReference: sourceFileReference, - dataMapping: configuredMappings!.map((item) => ({ - sourceColumn: item.sourceColumn, - targetColumn: item.targetColumn, - })), + dataMapping: configuredMappings!, }); const mappedSourceDataFileReference = "target.json"; await acts.mergeChunks({