Skip to content

Commit

Permalink
Merge pull request #177 from UN-OCHA/HPC-9772
Browse files Browse the repository at this point in the history
HPC-9772: Add `focusLocationId` to `planVersion` model
  • Loading branch information
enxtur authored Nov 11, 2024
2 parents f532f7d + 425335c commit 7b31aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@unocha/hpc-api-core",
"version": "10.1.2",
"version": "10.2.0",
"description": "Core libraries supporting HPC.Tools API Backend",
"license": "Apache-2.0",
"private": false,
Expand Down
2 changes: 2 additions & 0 deletions src/db/models/planVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { brandedType } from '../../util/io-ts';
import type { Brand } from '../../util/types';
import { DATE } from '../util/datatypes';
import { defineLegacyVersionedModel } from '../util/legacy-versioned-model';
import { LOCATION_ID } from './location';
import { PLAN_ID } from './plan';
import { PLAN_REPORTING_PERIOD_ID } from './planReportingPeriod';

Expand Down Expand Up @@ -59,6 +60,7 @@ export default defineLegacyVersionedModel({
type: PLAN_VERSION_CLUSTER_SELECTION_TYPE,
},
pdfPublishDate: { kind: 'checked', type: DATE },
focusLocationId: { kind: 'branded-integer', brand: LOCATION_ID },
},
accidentallyOptional: {
shortName: { kind: 'checked', type: t.string },
Expand Down

0 comments on commit 7b31aff

Please sign in to comment.