Skip to content

Commit

Permalink
Merge pull request #115 from UN-OCHA/HPC-8519
Browse files Browse the repository at this point in the history
HPC-8519: Add `measureFields` to attachment value of caseloads and indicators
  • Loading branch information
Pl217 authored May 26, 2023
2 parents edda8f0 + 45a6266 commit 4b4e577
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/db/models/json/indicatorsAndCaseloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,14 @@ export const hasDisaggregation = (
*/
export const CASELOAD_VALUE = t.intersection([
t.type({
metrics: t.type({
values: CASELOAD_OR_INDICATOR_METRICS_VALUES,
}),
metrics: t.intersection([
t.type({
values: CASELOAD_OR_INDICATOR_METRICS_VALUES,
}),
t.partial({
measureFields: t.array(METRIC_DEFINITION),
}),
]),
}),
t.partial({
description: t.string,
Expand Down Expand Up @@ -176,6 +181,7 @@ export const INDICATOR_VALUE = t.intersection([
}),
}),
]),
measureFields: t.array(METRIC_DEFINITION),
}),
]),
}),
Expand Down

0 comments on commit 4b4e577

Please sign in to comment.