Skip to content

Commit

Permalink
Merge pull request #145 from UN-OCHA/HPC-9163
Browse files Browse the repository at this point in the history
HPC-9163: Add isCommentPublic field to measurement model
  • Loading branch information
enxtur authored May 13, 2024
2 parents 9ce00ca + d1df77d commit 0e47bc1
Show file tree
Hide file tree
Showing 2 changed files with 7 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": "7.6.0",
"version": "7.7.0",
"description": "Core libraries supporting HPC.Tools API Backend",
"license": "Apache-2.0",
"private": false,
Expand Down
6 changes: 6 additions & 0 deletions src/db/models/measurement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ export default defineLegacyVersionedModel({
brand: PLAN_REPORTING_PERIOD_ID,
},
},
nonNullWithDefault: {
isCommentPublic: {
kind: 'checked',
type: t.boolean,
},
},
},
idField: 'id',
softDeletionEnabled: true,
Expand Down

0 comments on commit 0e47bc1

Please sign in to comment.