From a5496434f88239e6357af0bff7ac2a301e787176 Mon Sep 17 00:00:00 2001 From: Alex Christoffer Rasmussen Date: Tue, 22 Oct 2024 19:13:24 +0200 Subject: [PATCH] todo note about `sanitiseCustomFields` (#1281) --- apps/server/src/utils/parserFunctions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/utils/parserFunctions.ts b/apps/server/src/utils/parserFunctions.ts index db95bca38..beb55077b 100644 --- a/apps/server/src/utils/parserFunctions.ts +++ b/apps/server/src/utils/parserFunctions.ts @@ -322,6 +322,7 @@ export function sanitiseCustomFields(data: object): CustomFields { const keyFromLabel = customFieldLabelToKey(field.label); //Test label and key cohesion, but allow old lowercased keys to stay + //TODO: the `toLocaleLowerCase` part here is to conserve keys from old projects and could be removed at some point (okt. 2024) const key = originalKey.toLocaleLowerCase() === keyFromLabel.toLocaleLowerCase() ? originalKey : keyFromLabel; if (key in newCustomFields) { continue;