Skip to content

Commit

Permalink
Merge pull request #2769 from IntersectMBO/dummy/trigger-validation-s…
Browse files Browse the repository at this point in the history
…ervice-build

chore: lint format
  • Loading branch information
MSzalowski authored Jan 27, 2025
2 parents 2d60aa3 + d6ae8fa commit 5400abe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion govtool/metadata-validation/src/utils/parseMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export const parseMetadata = (body: Record<string, unknown>) => {

Object.keys(body).forEach((key) => {
if (key === 'references') {
const parsedReferences = (body[key] as Record<string, unknown>[]).map((reference) => parseMetadata(reference));
const parsedReferences = (body[key] as Record<string, unknown>[]).map(
(reference) => parseMetadata(reference),
);
metadata[key] = parsedReferences;
} else {
metadata[key] = getFieldValue(body, key);
Expand Down

0 comments on commit 5400abe

Please sign in to comment.