Skip to content

Commit

Permalink
todo note about sanitiseCustomFields
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-Arc committed Oct 21, 2024
1 parent dd13eb3 commit 090351b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/server/src/utils/parserFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 090351b

Please sign in to comment.